/docker-riak

A Docker project to bring up a local Riak cluster.

Primary LanguageShell

docker-riak

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.

Installation

Install Docker

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

Install dependencies

Once you're on a Ubuntu machine, install the following dependencies:

$ sudo apt-get install -y git curl make sshpass

Running

Clone repository

$ git clone https://github.com/hectcastro/docker-riak.git
$ cd docker-riak
$ make
$ make riak-container

Launch cluster

$ make start-cluster

Test cluster

$ make test-cluster

Tear down cluster

$ make stop-cluster

Troubleshooting

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