Created
September 4, 2014 23:20
-
-
Save ConnorDoyle/d17e6007d19cc995652e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /v2/apps HTTP/1.1 | |
Accept: application/json | |
Accept-Encoding: gzip, deflate | |
Content-Length: 327 | |
Content-Type: application/json; charset=utf-8 | |
Host: mesos.vm:8080 | |
User-Agent: HTTPie/0.8.0 | |
{ | |
"cmd": "sleep 60", | |
"container": { | |
"docker": { | |
"image": "mesosphere/inky", | |
"network": "BRIDGE", | |
"portMappings": [ | |
{ | |
"containerPort": 8080, | |
"hostPort": 32001, | |
"protocol": "tcp" | |
} | |
] | |
}, | |
"type": "DOCKER" | |
}, | |
"cpus": 0.25, | |
"id": "bridge-test", | |
"instances": 3, | |
"mem": 16.0 | |
} | |
HTTP/1.1 201 Created | |
Content-Type: application/json | |
Location: http://mesos.vm:8080/v2/apps/bridge-test | |
Server: Jetty(8.y.z-SNAPSHOT) | |
Transfer-Encoding: chunked | |
{ | |
"args": null, | |
"backoffFactor": 1.15, | |
"backoffSeconds": 1, | |
"cmd": "sleep 60", | |
"constraints": [], | |
"container": { | |
"docker": { | |
"image": "mesosphere/inky", | |
"network": "BRIDGE", | |
"portMappings": [ | |
{ | |
"containerPort": 8080, | |
"hostPort": 32001, | |
"protocol": "tcp" | |
} | |
] | |
}, | |
"type": "DOCKER", | |
"volumes": [] | |
}, | |
"cpus": 0.25, | |
"dependencies": [], | |
"disk": 0.0, | |
"env": {}, | |
"executor": "", | |
"healthChecks": [], | |
"id": "/bridge-test", | |
"instances": 3, | |
"mem": 16.0, | |
"ports": [ | |
0 | |
], | |
"requirePorts": false, | |
"storeUrls": [], | |
"upgradeStrategy": { | |
"minimumHealthCapacity": 1.0 | |
}, | |
"uris": [], | |
"user": null, | |
"version": "2014-09-04T23:11:06.433Z" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment