Skip to content

Instantly share code, notes, and snippets.

@lucasfais lucasfais/Azkfile.js
Last active Aug 29, 2015

Embed
What would you like to do?
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
crawler: {
// Dependent systems
depends: ["elasticsearch"],
// More images: http://images.azk.io
image: "ruby:latest",
// Steps to execute before running instances
provision: [
"bundle install --path /bundler",
],
workdir: "/azk/#{manifest.dir}/crawler",
command: "bundle exec ruby crawler.rb",
mounts: {
'/azk/#{manifest.dir}': path("."),
'/bundler': persistent("bundler"),
},
scalable: {"default": 1},
envs: {
// set instances variables
RUBY_ENV: "dev",
BUNDLE_APP_CONFIG: "/bundler",
},
},
elasticsearch: {
image: "dockerfile/elasticsearch",
mounts: {
'/data': persistent("elasticsearch"),
},
ports: {
http: "9200/tcp",
transport: "9300/tcp",
},
export_envs: {
ELASTICSEARCH_URL: "http://#{net.host}:#{net.port.http}"
},
http: {
domains: [ "#{system.name}.#{azk.default_domain}" ]
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.