Please make sure you have the following packages installed:
- vagrant
- VirtualBox
$ cd vagrant $ vagrant up
This will start an Ubuntu VM, install Docker, and then will automatically run the fig configuration described below. At the end of the process, you can run $ vagrant ssh
to ssh into the VM and get access to all the docker instances.
- Docker
- ZK + Mesos + Marathon = as an orchestration tool
- Consul = as K/V, monitoring, Service Directory and Registry
- HAproxy + consul-haproxy = as LoadBalancer with automatic config generation
- Fig.sh = as a spawner for developers and intgeration envirnment
In order to build the docker image you have to execute the following command once:
$ ./build-docker-images.sh
Then you have to create a valid fig.yml file:
$ HOSTNAME=boot2docker IP=192.168.59.103 ./genfig.sh
Where HOSTNAME and IP correspond to your local VM (i.e. boot2docker)
To start an instance of each service execute:
$ fig up -d
[3] http://stackoverflow.com/questions/25217208/setting-up-a-docker-fig-mesos-environment