Riak was designed to be deployed and run on dedicated infrastructure, as opposed to containers or virtualization platforms.
Nonetheless, being able to quickly deploy a Riak cluster for testing and development purposes can be very useful.
I’ve created a repository today that enables the user to build Docker images for most versions of Riak KV, TS, and CS ever produced:
https://github.com/shaneutt/riak-docker
The dockerfile is relatively simple:
The script used to start the Riak service takes care of some basic configuration and then tails the logs:
Using these images, creation of a node becomes a breeze:
Then you can simply add enough nodes to make a five node cluster (and wait for them to come up):
And then join all the nodes together, plan, and commit!
Now you have a Riak test environment to test your apps against, woohoo!
Happy Coding!