Created
February 25, 2015 05:27
-
-
Save heitortsergent/12ab01975e8ff07c6daa to your computer and use it in GitHub Desktop.
Azkfile.js for sendgrid-parse-ngrok demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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