Created
July 8, 2015 16:00
-
-
Save feniix/2fc4ffd059ccc888c0d9 to your computer and use it in GitHub Desktop.
Example using parameters
This file contains hidden or 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
{ | |
"id": "/app", | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"network": "HOST", | |
"image": "registry.spantree.net/app:#{BUILD_ID}", | |
"privileged": true, | |
"forcePullImage": true, | |
"parameters": [ | |
{ "key": "env", "value": "JAVA_OPTS=-Xmx1024m -Xms1024m -Dserver.port=8081" }, | |
{ "key": "env", "value": "SFDC_BASERURL=#{SFDC_BASEURL}" }, | |
{ "key": "env", "value": "SFDC_USER=#{SFDC_USER}" }, | |
{ "key": "env", "value": "SFDC_PASSWORD=#{SFDC_PASSWORD}" }, | |
{ "key": "env", "value": "SFDC_TOKEN=#{SFDC_TOKEN}" }, | |
{ "key": "env", "value": "AZURE_CLIENT_ID=#{AZURE_CLIENT_ID}" }, | |
{ "key": "env", "value": "AZURE_CLIENT_SECRET=#{AZURE_CLIENT_SECRET}" } | |
] | |
} | |
}, | |
"uris": [ | |
"file:///etc/.dockercfg" | |
], | |
"ports": [ 0 ], | |
"healthChecks": [ | |
{ | |
"protocol": "COMMAND", | |
"command": { "value": "curl -f -X GET http://$HOST:8081/api/v1/health" }, | |
"gracePeriodSeconds": 300, | |
"intervalSeconds": 20, | |
"timeoutSeconds": 5, | |
"maxConsecutiveFailures": 3 | |
} | |
], | |
"instances": 1, | |
"cpus": 1, | |
"mem": 2048 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment