Skip to content

Instantly share code, notes, and snippets.

@gullitmiranda
Forked from marioidival/Azkfile.js
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gullitmiranda/186ac28718a284b46f55 to your computer and use it in GitHub Desktop.
Save gullitmiranda/186ac28718a284b46f55 to your computer and use it in GitHub Desktop.
Pyramid with Python 3.4 - Azkfile.js
/**
* 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