Skip to content

Instantly share code, notes, and snippets.

@gsemet
Last active June 8, 2017 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsemet/3298c3eeeb26009aad68f3207e42656c to your computer and use it in GitHub Desktop.
Save gsemet/3298c3eeeb26009aad68f3207e42656c to your computer and use it in GitHub Desktop.
Jupyter Test Deployment Configuration on Marathon
{
"id": "/jupyter",
"cmd": "start-notebook.sh --NotebookApp.token=''",
"cpus": 25,
"mem": 70000,
"disk": 1000,
"instances": 1,
"acceptedResourceRoles": [
"*"
],
"container": {
"type": "DOCKER",
"volumes": [
{
"containerPath": "/home/jovyan/work",
"hostPath": "workspace",
"mode": "RW"
},
{
"containerPath": "workspace",
"mode": "RW",
"persistent": {
"size": 1000,
"type": "root",
"constraints": []
}
}
],
"docker": {
"image": "stibbons31/jupyter-all-spark-notebook:marathon_volume_hack",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 8888,
"hostPort": 0,
"servicePort": 10002,
"protocol": "tcp",
"name": "web",
"labels": {}
}
],
"privileged": true,
"parameters": [],
"forcePullImage": true
}
},
"env": {
"GRANT_SUDO": "yes"
},
"healthChecks": [
{
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 3,
"portIndex": 0,
"path": "/tree",
"protocol": "HTTP",
"ignoreHttp1xx": false
}
],
"portDefinitions": [
{
"port": 10002,
"protocol": "tcp",
"name": "default",
"labels": {}
}
],
"user": "root",
"upgradeStrategy": {
"minimumHealthCapacity": 0,
"maximumOverCapacity": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment