Public Repository

Last pushed: a year ago
Short Description
This is a docker image with riak installed, built with supervisor
Full Description

This image runs supervisor so riak, riak-cs and stanchion can all run within a container. On start up, it generates credentials to use to connect to it as S3 compatible storage. Credentials and data can be mapped to an external directory, so they won't be lost when a container stops. This can be done, by adding volumes when running the container.

Usage

Basic

`docker run -d --name="insight_riak" -p 591:8080 -p 8098:8098 \
           -v <directory_to_store_credentials>:/var/lib/hubble \
           -v /var/lib/riak/riak/data:/var/lib/riak \
           -v /var/lib/riak/riak-cs/data:/var/lib/riak-cs \
           -v /var/lib/riak/stanchion/data:/var/lib/stanchion \
           insightsoftware/riak:1.0.0

Dockerfile:

FROM ubuntu:14.04

ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/riak/bin:/usr/lib/riak/erts-5.10.3"

RUN apt-get update && apt-get -y install curl && curl -s https://packagecloud.io/install/repositories/basho/riak/script.deb.sh | sudo bash && apt-get install riak=2.1.4-1 \
&& curl -s https://packagecloud.io/install/repositories/basho/stanchion/script.deb.sh | sudo bash && apt-get install stanchion=2.1.1-1 \
&& curl -s https://packagecloud.io/install/repositories/basho/riak-cs/script.deb.sh | sudo bash && apt-get install riak-cs=2.1.1-1 \
&& apt-get -y install supervisor \
&& mkdir -p /etc/supervisor/conf.d/ \
&& chown -R riak /var/lib/riak/ \
&& chown -R riakcs /var/lib/riak-cs/ \
&& chown -R stanchion /var/lib/stanchion/ 

#COPY Start services scripts
COPY scripts/start_riak.sh /start_riak.sh
COPY scripts/start_stanchion.sh /start_stanchion.sh
COPY scripts/start_riak-cs.sh /start_riak-cs.sh
COPY scripts/restart_services.sh /restart_services.sh
COPY /etc/supervisor/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
COPY entrypoint.sh /entrypoint.sh

#COPY Default config files and helper script
COPY configs/riak/advanced.config /etc/riak/advanced.config
COPY configs/riak/riak.conf /etc/riak/riak.conf
COPY configs/riak-cs/riak-cs.conf /etc/riak-cs/riak-cs.conf
COPY configs/stanchion/stanchion.conf /etc/stanchion/stanchion.conf
COPY scripts/create_credentials.sh /create_credentials.sh

RUN chmod +x /entrypoint.sh
RUN chmod +x /start_riak.sh
RUN chmod +x /start_stanchion.sh
RUN chmod +x /start_riak-cs.sh
RUN chmod +x /restart_services.sh
RUN chmod +x /create_credentials.sh

# Expose Ports
EXPOSE 8098 8080 8000

CMD "/entrypoint.sh"
Docker Pull Command
Owner
insightsoftware

Comments (0)