-
-
Save marioidival/b9d5e82ea114fa0b1845 to your computer and use it in GitHub Desktop.
This file contains hidden or 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({ | |
"pyramidapp": { | |
// Dependent systems | |
depends: [], // postgres, mysql, mongodb ... | |
// More images: http://images.azk.io | |
image: {"docker": "azukiapp/python:3.4.3"}, | |
// Steps to execute before running instances | |
provision: [ | |
"pip install --upgrade pip", | |
"pip install --user --allow-all-external -r req.txt" | |
], | |
workdir: "/azk/#{manifest.dir}", | |
shell: "/bin/bash", | |
command: "pserve development.ini --reload", | |
wait: {"retry": 20, "timeout": 3000}, | |
mounts : { | |
'/azk/#{manifest.dir}': path('.'), | |
'/azk/pythonuserbase': persistent('pythonuserbase'), | |
}, | |
http: { | |
// my-app.dev.azk.io | |
domains: [ "#{system.name}.#{azk.default_domain}" ] | |
}, | |
envs: { | |
// set instances variables | |
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