Skip to content

Instantly share code, notes, and snippets.

@cj

cj/Azkfile.js Secret

Created March 10, 2016 17:04
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 cj/297d74d09739a2df15a2 to your computer and use it in GitHub Desktop.
Save cj/297d74d09739a2df15a2 to your computer and use it in GitHub Desktop.
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
"my-app": {
// Dependent systems
depends: [], // postgres, mysql, mongodb ...
// More images: http://images.azk.io
image: {"docker": "ruby:2.2.4"},
// Steps to execute before running instances
provision: [
"bundle install --path /azk/bundler",
"make install"
],
workdir: "/azk/#{manifest.dir}",
shell: "/bin/bash",
command: "make server",
wait: {"retry": 20, "timeout": 1000},
mounts : {
'/azk/#{manifest.dir}': path('./autolink.cuba'),
'/azk/bundler' : persistent('bundler'),
},
scalable: {"default": 1},
http: {
// my-app.dev.azk.io
domains: [ "#{system.name}.#{azk.default_domain}" ]
},
envs: {
LANG : '',
LC_ALL: '',
// set instances variables
RACK_ENV : 'development',
BUNDLE_APP_CONFIG : '/azk/bundler',
}
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment