Created
March 27, 2015 14:52
-
-
Save ca0abinary/a1106390c7c85da27087 to your computer and use it in GitHub Desktop.
CoreOS (Mesos + Marathon + Zookeeper)
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
[Unit] | |
Description=MesosMaster | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
Restart=on-failure | |
RestartSec=20 | |
TimeoutStartSec=0 | |
ExecStartPre=-/usr/bin/docker kill mesos_master | |
ExecStartPre=-/usr/bin/docker rm mesos_master | |
ExecStartPre=/usr/bin/docker pull mesosphere/mesos-master:0.20.1 | |
ExecStart=/usr/bin/sh -c "/usr/bin/docker run --name=mesos_master --privileged --net=host mesosphere/mesos-master:0.20.1 --ip=$(/usr/bin/ip -o -4 addr list enp3s0 | grep global | awk \'{print $4}\' | cut -d/ -f1) --zk=zk://zookeeper.local:2181/mesos --work_dir=/var/lib/mesos/master --quorum=1" | |
ExecStop=/usr/bin/docker stop mesos_master | |
[Install] | |
WantedBy=multi-user.target | |
[X-Fleet] | |
Conflicts=mesos-master@*.service | |
MachineMetadata=role=services |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment