Skip to content

Instantly share code, notes, and snippets.

@BlakeLucchesi
Last active August 29, 2015 14:20
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 BlakeLucchesi/ee423bb644f25c376e18 to your computer and use it in GitHub Desktop.
Save BlakeLucchesi/ee423bb644f25c376e18 to your computer and use it in GitHub Desktop.
Chronos/Marathon Job
{
"schedule": "R\/2014-09-25T17:22:00Z\/PT2M",
"name": "dockerjob",
"container": {
"type": "DOCKER",
"image": "libmesos/ubuntu",
},
"cpus": "0.5",
"mem": "512",
"command": "while sleep 10; do date =u %T; done"
}
name: facebook_slug_crawler
owner: rene@mattermark.com
schedule: R/2015-04-07T16:00:00Z/PT1M
cpu: 1.0
mem: 512
docker_container: mattermark/python-framework
command: cd /root/mattermark/python; python mattermark/crawlers/facebookslugcrawler.py 5
{
"id": "/product/service/my-app",
"cmd": "env && sleep 300",
"args": ["/bin/sh", "-c", "env && sleep 300"],
"container": {
"type": "DOCKER",
"docker": {
"image": "group/image",
"network": "BRIDGE",
},
},
"cpus": 1.5,
"mem": 256.0,
"env": {
"LD_LIBRARY_PATH": "/usr/local/lib/myLib"
},
"executor": "",
"labels": {
"environment": "staging"
},
"instances": 3,
"ports": [
8080,
9000
],
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"uris": [
"https://raw.github.com/mesosphere/marathon/master/README.md"
],
"version": "2014-03-01T23:29:30.158Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment