Created
October 22, 2015 23:43
-
-
Save TJC/cb3184705bc0eacde885 to your computer and use it in GitHub Desktop.
Dockerfile for Riak, Riak CS and Stanchion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
MAINTAINER tobyc@strategicdata.com.au | |
ENV DEBIAN_FRONTEND noninteractive | |
VOLUME /var/lib/riak | |
EXPOSE 4369 8080 8087 8098 8099 | |
COPY 99-http-proxy /etc/apt/apt.conf.d/ | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install -y curl | |
RUN curl -s https://packagecloud.io/install/repositories/basho/riak/script.deb.sh | bash | |
RUN curl -s https://packagecloud.io/install/repositories/basho/riak-cs/script.deb.sh | bash | |
RUN curl -s https://packagecloud.io/install/repositories/basho/stanchion/script.deb.sh | bash | |
RUN apt-get install -y riak riak-cs stanchion | |
ADD run_riak.sh / | |
ADD run_riak-cs.sh / | |
ADD run_stanchion.sh / | |
CMD /run_riak.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find /var/lib/riak -name "bitcask.*.lock" -delete | |
/usr/sbin/riak console |
Can you post the contents of the .sh
scripts as well?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that as it stands, this will only work with Docker run --net=host
Two reasons.
1)
Due to Erlang/OTP creating a whole lot of ports at random ports.
Once I get this working, I'm intending to lock the Erlang ports to a specific range which is then included in the port range in the Dockerfile.
The requirement of connecting by persistent node names.
--net=host uses the host's hostname, not a random checksum.