Skip to content

Instantly share code, notes, and snippets.

@frankhinek
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save frankhinek/52ac8b84c798a72b2de7 to your computer and use it in GitHub Desktop.
Save frankhinek/52ac8b84c798a72b2de7 to your computer and use it in GitHub Desktop.
Marathon Task description for Python3 Docker container.
{
"cmd": "env && python3 -m http.server $PORT0",
"container": {
"docker": {
"image": "python:3"
},
"type": "DOCKER"
},
"cpus": 0.25,
"healthChecks": [
{
"gracePeriodSeconds": 3,
"intervalSeconds": 10,
"maxConsecutiveFailures": 3,
"path": "/",
"portIndex": 0,
"protocol": "HTTP",
"timeoutSeconds": 5
}
],
"id": "python-app",
"instances": 2,
"mem": 50,
"ports": [
0
],
"upgradeStrategy": {
"minimumHealthCapacity": 0.5
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment