Permalink
Find file Copy path
cdf42fd Nov 4, 2015
1 contributor

Users who have contributed to this file

executable file 26 lines (20 sloc) 606 Bytes
#!/bin/bash
set -e
# Docker Machine Setup
docker-machine create \
-d virtualbox \
mhl-consul
docker $(docker-machine config mhl-consul) run -d \
-p "8500:8500" \
-h "consul" \
progrium/consul -server -bootstrap
docker-machine create \
-d virtualbox \
--engine-opt="cluster-store=consul://$(docker-machine ip mhl-consul):8500" \
--engine-opt="cluster-advertise=eth1:0" \
mhl-demo0
docker-machine create \
-d virtualbox \
--engine-opt="cluster-store=consul://$(docker-machine ip mhl-consul):8500" \
--engine-opt="cluster-advertise=eth1:0" \
mhl-demo1