This is a Docker project to bring up a local Riak cluster. In addition, the Pipework project is used to connect containers to each other.
If you're running Ubuntu, use the instructions for installing Docker on Linux.
If you're not on a Ubuntu host, use Vagrant to spin up a Ubuntu virtual machine with Docker installed.
Then, login to the virtual machine:
$ vagrant ssh
Once you're on a Ubuntu machine, install the following dependencies:
$ sudo apt-get install -y git curl make sshpass
$ git clone https://github.com/hectcastro/docker-riak.git
$ cd docker-riak
$ make
$ make riak-container
$ make start-cluster
$ make test-cluster
$ make stop-cluster
Spinning up Docker containers consumes memory. If the memory allocated to your
Ubuntu [virtual] machine is not adaquate, make start-cluster
will fail with
something like:
runtime: panic before malloc heap initialized
fatal error: runtime: cannot allocate heap metadata