-
-
Save gullitmiranda/186ac28718a284b46f55 to your computer and use it in GitHub Desktop.
Pyramid with Python 3.4 - Azkfile.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Documentation: http://docs.azk.io/Azkfile.js | |
*/ | |
// Adds the systems that shape your system | |
systems({ | |
"pyramid": { | |
// Dependent systems | |
depends: [], | |
// More images: http://images.azk.io | |
image: { | |
"docker": "azukiapp/python:3.4.3" | |
}, | |
provision: [ | |
"pip install --upgrade --user --allow-all-external pip", | |
// "pip install --user --allow-all-external -r requirements.txt", | |
"python setup.py develop --prefix=/azk/pythonuserbase" | |
], | |
workdir: "/azk/#{manifest.dir}", | |
shell: "/bin/bash", | |
command: "pserve development.ini --reload http_port=$HTTP_PORT", | |
// NOTE: change to app open with http_port argument. | |
// eg of port in `development.ini` file | |
// [server:main] | |
// port = %(http_port)s | |
wait: { | |
"retry": 20, | |
"timeout": 1000 | |
}, | |
mounts: { | |
'/azk/#{manifest.dir}': path("."), | |
'/azk/pythonuserbase': persistent('pythonuserbase'), | |
}, | |
scalable: { | |
"default": 1 | |
}, | |
http: { | |
domains: ["#{system.name}.#{azk.default_domain}"] | |
}, | |
envs: { | |
PATH: '/azk/pythonuserbase/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', | |
PYTHON_ENV: 'development', | |
PYTHONUSERBASE: '/azk/pythonuserbase', | |
}, | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment