Skip to content

Instantly share code, notes, and snippets.

@shettyg
Last active July 17, 2017 18:06
Show Gist options
  • Save shettyg/75edf1d1f3e9fa504e980424a9275b01 to your computer and use it in GitHub Desktop.
Save shettyg/75edf1d1f3e9fa504e980424a9275b01 to your computer and use it in GitHub Desktop.
Mesos task file with apache webserver for ovn
{
"name": "task1",
"task_id": {"value" : "1234"},
"agent_id": {"value" : ""},
"container": {
"type": "MESOS",
"mesos": {
"image": {
"type": "DOCKER",
"docker": {
"name": "fedora/apache"
}
}
},
"network_infos" : [{
"name": "ovn",
"labels": {
"labels" : [
{ "key" : "app", "value" : "myapp" },
{ "key" : "logical_switch", "value" : "coke1" }
]
}
}]
},
"resources": [
{
"name": "cpus",
"type": "SCALAR",
"scalar": {
"value": 0.1
},
"roles": "*"
},
{
"name": "mem",
"type": "SCALAR",
"scalar": {
"value": 32
},
"roles": "*"
}
],
"command": {
"value": "/run-apache.sh"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment