Skip to content

Instantly share code, notes, and snippets.

@feniix
Created July 8, 2015 16:00
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 feniix/2fc4ffd059ccc888c0d9 to your computer and use it in GitHub Desktop.
Save feniix/2fc4ffd059ccc888c0d9 to your computer and use it in GitHub Desktop.
Example using parameters
{
"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