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
| docker run \ | |
| --name zookeeper \ | |
| -d \ | |
| -p 2181:2181 \ | |
| -p 2888:2888 \ | |
| -p 3888:3888 \ | |
| jplock/zookeeper |
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
| docker run \ | |
| --name mesos_master \ | |
| --link zookeeper:zookeeper \ | |
| -d \ | |
| -e MESOS_QUORUM=1 \ | |
| -e MESOS_LOG_DIR=/var/log \ | |
| -e MESOS_WORK_DIR=/tmp \ | |
| -e MESOS_ZK=zk://zookeeper:2181/mesos \ | |
| -p 5050:5050 \ | |
| redjack/mesos-master |
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
| docker run -d \ | |
| --name mesos_slave_01 \ | |
| --link zookeeper:zookeeper \ | |
| -e MESOS_LOG_DIR=/var/log \ | |
| -e MESOS_MASTER=zk://zookeeper:2181/mesos \ | |
| -e MESOS_EXECUTOR_REGISTRATION_TIMEOUT=5mins \ | |
| -e MESOS_ISOLATOR=cgroups/cpu,cgroups/mem \ | |
| -e MESOS_CONTAINERIZERS=docker,mesos \ | |
| -v $(which docker):$(which docker) \ | |
| -v /var/run/docker.sock:/var/run/docker.sock \ |
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
| docker run -d \ | |
| --name mesos_slave_01 \ | |
| --link zookeeper:zookeeper \ | |
| -e MESOS_LOG_DIR=/var/log \ | |
| -e MESOS_MASTER=zk://zookeeper:2181/mesos \ | |
| -e MESOS_EXECUTOR_REGISTRATION_TIMEOUT=5mins \ | |
| -e MESOS_ISOLATOR=cgroups/cpu,cgroups/mem \ | |
| -e MESOS_CONTAINERIZERS=docker,mesos \ | |
| -v $(which docker):$(which docker) \ | |
| -e DOCKER_HOST=tcp://192.168.1.18:2375 \ |
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
| docker run \ | |
| --name marathon \ | |
| -d \ | |
| -p 8080:8080 \ | |
| --link zookeeper:zookeeper \ | |
| mesosphere/marathon \ | |
| --master zk://zookeeper:2181/mesos \ | |
| --zk zk://zookeeper:2181/marathon |
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
| { | |
| "container": { | |
| "type": "DOCKER", | |
| "docker": { | |
| "image": "rabbitmq:management", | |
| "network": "BRIDGE", | |
| "portMappings": [ | |
| { "containerPort": 5672, "hostPort": 0, "servicePort": 5672, "protocol": "tcp" }, | |
| { "containerPort": 15672, "hostPort": 0, "servicePort": 15672, "protocol": "tcp" } | |
| ] |
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
| curl \ | |
| -X POST \ | |
| -H "Content-Type: application/json" \ | |
| http://localhost:8080/v2/apps -d@rabbitmq.json |
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
| { | |
| "container": { | |
| "type": "DOCKER", | |
| "docker": { | |
| "image": "google/cadvisor:latest" | |
| }, | |
| "volumes": [ | |
| { | |
| "containerPath": "/rootfs", | |
| "hostPath": "/", |
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
| curl \ | |
| -X POST \ | |
| -H "Content-Type: application/json" \ | |
| http://localhost:8080/v2/apps -d@cadvisor.json |
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
| docker run -d \ | |
| --name consul \ | |
| -p 8300:8300 \ | |
| -p 8301:8301 \ | |
| -p 8301:8301/udp \ | |
| -p 8302:8302 \ | |
| -p 8302:8302/udp \ | |
| -p 8400:8400 \ | |
| -p 8500:8500 \ | |
| -p 8600:53/udp \ |
OlderNewer