Skip to content

Instantly share code, notes, and snippets.

@shettyg
Created February 22, 2017 18:46
Show Gist options
  • Save shettyg/296068e9ff360856155cf81dfca97926 to your computer and use it in GitHub Desktop.
Save shettyg/296068e9ff360856155cf81dfca97926 to your computer and use it in GitHub Desktop.
Mesos Task
{
"name": "task1",
"task_id": {"value" : "1234"},
"agent_id": {"value" : ""},
"container": {
"type": "MESOS",
"mesos": {
"image": {
"type": "DOCKER",
"docker": {
"name": "fedora/apache"
}
}
},
"network_infos" : [{
"name": "mynet",
"labels": {
"labels" : [
{ "key" : "app", "value" : "myapp" },
{ "key" : "env", "value" : "prod" }
]
}
}]
},
"resources": [
{
"name": "cpus",
"type": "SCALAR",
"scalar": {
"value": 0.1
},
"role": "*"
},
{
"name": "mem",
"type": "SCALAR",
"scalar": {
"value": 32
},
"role": "*"
}
],
"command": {
"value": "/run-apache.sh"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment