d0rc / riak-docker-dev-cluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get Ready!

Option 1: Homebrew & xhyve

From Homebrew, install:

$ brew install xhyve docker docker-machine docker-machine-driver-xhyve

docker-machine's xhyve driver needs to run as root:

$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

Set up virtual machine to run docker containers:

$ docker-machine create --driver xhyve default

Option 2: Docker Toolbox & VirtualBox

Install Docker Toolbox, which sets up Docker, Docker Machine, Docker Compose and VirtualBox (among other things).

Create the Docker Machine VM default with the VirtualBox driver. You can use the --virtualbox-no-share option, telling docker-machine not to share your whole /Users directory inside the created VM.

$ docker-machine create --driver virtualbox --virtualbox-no-share default

And Go!

Set the environment:

$ eval $(docker-machine env)

Start Riak cluster:

$ make start

Stop Riak cluster:

$ make stop

About


Languages

Language:Shell 55.6%Language:Makefile 44.4%