Public Repository

Last pushed: 9 months 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.



`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 \


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 | sudo bash && apt-get install riak=2.1.4-1 \
&& curl -s | sudo bash && apt-get install stanchion=2.1.1-1 \
&& curl -s | 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/ /
COPY scripts/ /
COPY scripts/ /
COPY scripts/ /
COPY /etc/supervisor/supervisor.conf /etc/supervisor/conf.d/supervisor.conf

#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/ /

RUN chmod +x /
RUN chmod +x /
RUN chmod +x /
RUN chmod +x /
RUN chmod +x /
RUN chmod +x /

# Expose Ports
EXPOSE 8098 8080 8000

CMD "/"
Docker Pull Command

Comments (0)