Skip to content

Instantly share code, notes, and snippets.

@heitortsergent
Created February 25, 2015 05:27
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 heitortsergent/12ab01975e8ff07c6daa to your computer and use it in GitHub Desktop.
Save heitortsergent/12ab01975e8ff07c6daa to your computer and use it in GitHub Desktop.
Azkfile.js for sendgrid-parse-ngrok demo
/**
* Documentation: http://docs.azk.io/Azkfile.js
*/
// Adds the systems that shape your system
systems({
'sendgrid-parse-api-example': {
// Dependent systems
depends: [],
// More images: http://images.azk.io
image: {"docker": "azukiapp/node:0.10"},
// Steps to execute before running instances
provision: [
"npm install",
],
workdir: "/azk/#{manifest.dir}",
shell: "/bin/bash",
command: "npm start",
wait: {"retry": 20, "timeout": 1000},
mounts: {
'/azk/#{manifest.dir}': path("."),
},
scalable: {"default": 1},
http: {
domains: [ "#{system.name}.#{azk.default_domain}" ]
},
envs: {
// set instances variables
NODE_ENV: "dev",
},
export_envs: {
HTTP_PORT: "#{azk.default_domain}:#{net.port.http}",
HTTPS_PORT: "#{azk.default_domain}:#{net.port.http}"
},
},
ngrok: {
// Dependent systems
depends: ["sendgrid-parse-api-example"],
image : {"docker" : "gullitmiranda/docker-ngrok"},
// Mounts folders to assigned paths
mounts: {
// equivalent persistent_folders
'/ngrok/log' : path("./log"),
},
scalable: {"default": 1},
// do not expect application response
wait: false,
http : {
domains: [ "#{manifest.dir}-#{system.name}.#{azk.default_domain}" ],
},
ports : {
http : "4040"
},
envs : {
NGROK_LOG : "/ngrok/log/ngrok.log",
NGROK_SUBDOMAIN : "sendgrid-parse",
NGROK_AUTH : "rTz5WboOOSMqVrFudJ1C",
NGROK_CONFIG : "/ngrok/ngrok.yml",
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment