Created
August 23, 2016 14:36
-
-
Save arkan/4e4293dc484b8354c74fcae742650cc8 to your computer and use it in GitHub Desktop.
Mesos on Docker
This file contains hidden or 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
version: "2" | |
services: | |
zk: | |
image: bobrik/zookeeper | |
network_mode: host | |
environment: | |
ZK_CONFIG: tickTime=2000,initLimit=10,syncLimit=5,maxClientCnxns=128,forceSync=no,clientPort=2181 | |
ZK_ID: 1 | |
master: | |
image: mesosphere/mesos-master:1.0.0-2.0.89.ubuntu1404 | |
network_mode: host | |
environment: | |
MESOS_ZK: zk://127.0.0.1:2181/mesos | |
MESOS_QUORUM: 1 | |
MESOS_CLUSTER: kalyke 0.1 | |
MESOS_REGISTRY: replicated_log # default is in_memory for some reason | |
MESOS_HOSTNAME: ${DOCKER_IP} | |
LIBPROCESS_IP: ${DOCKER_IP} | |
depends_on: | |
- zk | |
slave-one: | |
image: mesosphere/mesos-slave:1.0.0-2.0.89.ubuntu1404 | |
network_mode: host | |
pid: host | |
privileged: true | |
environment: | |
MESOS_MASTER: zk://127.0.0.1:2181/mesos | |
MESOS_CONTAINERIZERS: docker,mesos | |
MESOS_PORT: 5051 | |
MESOS_RESOURCES: ports(*):[13000-19999] | |
MESOS_HOSTNAME: ${DOCKER_IP} | |
LIBPROCESS_IP: ${DOCKER_IP} | |
MESOS_WORK_DIR: /tmp/mesos | |
volumes: | |
- /sys/fs/cgroup:/sys/fs/cgroup | |
- /usr/local/bin/docker:/usr/bin/docker | |
- /var/run/docker.sock:/var/run/docker.sock | |
depends_on: | |
- zk | |
# slave-two: | |
# image: mesosphere/mesos-slave:1.0.0-2.0.89.ubuntu1404 | |
# network_mode: host | |
# pid: host | |
# environment: | |
# MESOS_MASTER: zk://127.0.0.1:2181/mesos | |
# MESOS_CONTAINERIZERS: docker,mesos | |
# MESOS_PORT: 5052 | |
# MESOS_RESOURCES: ports(*):[12000-12999] | |
# MESOS_HOSTNAME: ${DOCKER_IP} | |
# LIBPROCESS_IP: ${DOCKER_IP} | |
# volumes: | |
# - /sys/fs/cgroup:/sys/fs/cgroup | |
# - /usr/local/bin/docker:/usr/bin/docker | |
# - /var/run/docker.sock:/var/run/docker.sock | |
# depends_on: | |
# - zk | |
marathon: | |
image: mesosphere/marathon:v1.2.0-RC6 | |
network_mode: host | |
environment: | |
MARATHON_MASTER: zk://127.0.0.1:2181/mesos | |
depends_on: | |
- zk | |
chronos: | |
image: mesosphere/chronos:chronos-2.4.0-0.1.20151007110204.ubuntu1404-mesos-0.24.1-0.2.35.ubuntu1404 | |
command: /usr/bin/chronos run_jar --http_port 8888 --master zk://127.0.0.1:2181/mesos --zk_hosts zk://127.0.0.1:2181/mesos | |
network_mode: host | |
depends_on: | |
- zk |
This file contains hidden or 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
{ | |
"id": "/servicerouter", | |
"cmd": null, | |
"cpus": 0.1, | |
"mem": 128, | |
"disk": 0, | |
"instances": 1, | |
"container": { | |
"type": "DOCKER", | |
"volumes": [], | |
"docker": { | |
"image": "mesosphere/marathon-lb:v1.3.3", | |
"network": "HOST", | |
"privileged": true, | |
"parameters": [], | |
"forcePullImage": false | |
} | |
}, | |
"env": {}, | |
"portDefinitions": [ | |
{ | |
"port": 10000, | |
"protocol": "tcp", | |
"labels": {} | |
} | |
], | |
"args": [ | |
"sse", | |
"-m", | |
"http://172.17.0.1:8080", | |
"--health-check", | |
"--group", | |
"internal", | |
"--group", | |
"external" | |
], | |
"upgradeStrategy": { | |
"minimumHealthCapacity": 0, | |
"maximumOverCapacity": 0 | |
} | |
} |
This file contains hidden or 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
{ | |
"args": [ | |
"sse", | |
"-m", | |
"http://172.17.0.1:8080", | |
"--health-check", | |
"--group", | |
"internal", | |
"--group", | |
"external" | |
], | |
"container": { | |
"docker": { | |
"image": "mesosphere/marathon-lb:v1.3.3", | |
"network": "HOST", | |
"privileged": true | |
}, | |
"type": "DOCKER" | |
}, | |
"cpus": 0.1, | |
"env": {}, | |
"id": "servicerouter", | |
"instances": 1, | |
"mem": 128, | |
"upgradeStrategy": { | |
"maximumOverCapacity": 0, | |
"minimumHealthCapacity": 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
marathon-dump.json
is theservice.json
manifest fetched from Marathon.