Skip to content

Instantly share code, notes, and snippets.

@marioidival
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marioidival/b9d5e82ea114fa0b1845 to your computer and use it in GitHub Desktop.
Save marioidival/b9d5e82ea114fa0b1845 to your computer and use it in GitHub Desktop.
/**
* 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