Last active
August 29, 2015 14:18
-
-
Save kevinschoon/53ad3533268930925ad2 to your computer and use it in GitHub Desktop.
Apache Mesos and Marathon
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
zookeeper: | |
image: jplock/zookeeper:latest | |
ports: | |
- 2181:2181 | |
master: | |
image: mesosphere/mesos-master:0.22.0-1.0.ubuntu1404 | |
net: host | |
ports: | |
- "5050:5050" | |
environment: | |
- "MESOS_IP=docker" | |
- "MESOS_ZK=zk://docker:2181/mesos" | |
- "MESOS_QUORUM=1" | |
- "MESOS_WORK_DIR=/tmp/mesos" | |
- "MESOS_LOG_DIR=/tmp/mesos/log" | |
slave: | |
net: host | |
build: ./ | |
environment: | |
- "MESOS_IP=docker" | |
- "MESOS_MASTER=zk://docker:2181/mesos" | |
- "MESOS_LOG_DIR=/tmp/log" | |
- "MESOS_CONTAINERIZERS=docker,mesos" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /sys:/sys | |
ports: | |
- "5051:5051" | |
marathon: | |
image: mesosphere/marathon:latest | |
command: "--master zk://docker:2181/mesos --zk zk://docker:2181/marathon --task_launch_timeout 300000" | |
ports: | |
- "8080:8080" |
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
from mesosphere/mesos-slave:0.22.0-1.0.ubuntu1404 | |
RUN apt-get update && apt-get install -y apt-transport-https | |
RUN echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list | |
RUN apt-get update && apt-get install -y --force-yes lxc-docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment