Skip to content

Instantly share code, notes, and snippets.

@pradeepchhetri
Last active August 29, 2015 14:16
Show Gist options
  • Save pradeepchhetri/96e23dbe0f1592d14641 to your computer and use it in GitHub Desktop.
Save pradeepchhetri/96e23dbe0f1592d14641 to your computer and use it in GitHub Desktop.
Marathon App Config
{
"id": "test-service",
"instances": 2,
"cpus": 1,
"mem": 250,
"cmd": "python -m SimpleHTTPServer $PORT0",
"healthChecks": [
{
"gracePeriodSeconds": 3,
"intervalSeconds": 10,
"maxConsecutiveFailures": 3,
"path": "/",
"portIndex": 0,
"protocol": "HTTP",
"timeoutSeconds": 5
}
],
"uris": [ "file:///etc/mesos/.dockercfg" ]
}
{
"id": "test-service",
"instances": 2,
"cpus": 1,
"mem": 250,
"cmd": "env && python3 -m http.server 8000",
"container": {
"type": "DOCKER",
"docker": {
"image": "python:3",
"network": "BRIDGE",
"portMappings": [
{ "containerPort": 8000, "hostPort": 0, "protocol": "tcp" }
],
"parameters": [
{ "key" : "publish-all", "value": "true" }
]
}
},
"healthChecks": [
{
"gracePeriodSeconds": 3,
"intervalSeconds": 10,
"maxConsecutiveFailures": 3,
"path": "/",
"portIndex": 0,
"protocol": "HTTP",
"timeoutSeconds": 5
}
],
"uris": [ "file:///etc/mesos/.dockercfg" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment