docker encapsulation of riak with search and leveldb.. - can run one instance or in a cluster
100K+
This is based on dockerfile and scripts from https://github.com/hectcastro/docker-riak
The changes for my needs were significant enough to not make it a true fork..
Changes from hectcastro/docker-riak
enable search
use leveldb instead of bitcask backend
enable cluster admin control panel with user and password
removed dependency on pipeworks
uses docker native networking with icc enabled (inter container comm)
riak node names are set up based on ip address -- hackish but works
the cluster startup scripts uses data mounts from the host into the containers
start-cluster and test-cluster takes an optional numeric argument for number of nodes - defaults to 5
uses dynamic dns to update an external dyndns server from docker events - see docker_dns file
use of supervisord
use of ssh
scripts and makefile
docker pull lapax/riak
docker run -d -t -i \
-h "riak1" \
-v /path/to/local/directory:/var/lib/riak \
-name "riak1" \
"lapax/riak"
or just
docker run -d -t -i lapax/riak
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/lapax/dockerfile-riak.git
$ cd docker-riak
$ make
$ make riak-container
$ make start-cluster 3
$ make test-cluster 3
log in via browser to https://<nodeip>:8069/admin with default user name password (admin / adminpass)
$ 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
Content type
Image
Digest
sha256:dea8491ff…
Size
97.9 MB
Last updated
almost 11 years ago
docker pull lapax/riak