Skip to content

Instantly share code, notes, and snippets.

@mhausenblas
Created May 24, 2016 09:21
Show Gist options
  • Save mhausenblas/040c7ae5e0ba42ce93e17b891f460520 to your computer and use it in GitHub Desktop.
Save mhausenblas/040c7ae5e0ba42ce93e17b891f460520 to your computer and use it in GitHub Desktop.
A Marathon app spec to launch CockroachDB (dev/test mode)
{
"id": "cockroachdb",
"instances": 1,
"cpus": 1,
"mem": 300,
"cmd": "./cockroach start --insecure --host=0.0.0.0 --logtostderr",
"container": {
"type": "DOCKER",
"docker": {
"image": "cockroachdb/cockroach:beta-20160512",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 8080,
"hostPort": 0
},
{
"containerPort": 26257,
"hostPort": 0
}
]
}
},
"acceptedResourceRoles": [
"slave_public"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment