Dockerfile for launching a single Riak node
Shell
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 10 commits ahead of jplock:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
scripts
.gitignore
README.md
Vagrantfile

README.md

docker-riak

Builds a docker image for Riak.

docker run -d nisaacson/riak

Building

To build a docker image, use the included Vagrantfile to launch up a virtual machine with docker already installed. The Vagrantfile uses the vagrant docker provisioner to install docker

Requirements

To launch the vagrant virtual machine

cd /path/to/this/repo
vagrant up --provision

Once the virtual machine is running it will have the Riak server already started within it

Accessing Docker

# log into the virtual machine
vagrant ssh
# show a list of running images
docker ps
# to ensure that the image exists, you should see the `riak-client` image in the list output
docker images

# connect to the riak service running in the container via riak http interface
curl "http://localhost:8098"

# You can connect to the running container via the mapped ssh port
ssh -p 2222 root@localhost
# password: basho

Notes

To use search, you must first enable it on a bucket before adding any data. How to enable Search

underscore.js is available by default for use in map-reduce javascript functions.