github.com/akerouanton/docker@v1.11.0-rc3/docs/examples/running_riak_service.Dockerfile (about) 1 # Riak 2 # 3 # VERSION 0.1.1 4 5 # Use the Ubuntu base image provided by dotCloud 6 FROM ubuntu:trusty 7 MAINTAINER Hector Castro hector@basho.com 8 9 # Install Riak repository before we do apt-get update, so that update happens 10 # in a single step 11 RUN apt-get install -q -y curl && \ 12 curl -fsSL https://packagecloud.io/install/repositories/basho/riak/script.deb | sudo bash 13 14 # Install and setup project dependencies 15 RUN apt-get update && \ 16 apt-get install -y supervisor riak=2.0.5-1 17 18 RUN mkdir -p /var/log/supervisor 19 20 RUN locale-gen en_US en_US.UTF-8 21 22 COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf 23 24 # Configure Riak to accept connections from any host 25 RUN sed -i "s|listener.http.internal = 127.0.0.1:8098|listener.http.internal = 0.0.0.0:8098|" /etc/riak/riak.conf 26 RUN sed -i "s|listener.protobuf.internal = 127.0.0.1:8087|listener.protobuf.internal = 0.0.0.0:8087|" /etc/riak/riak.conf 27 28 # Expose Riak Protocol Buffers and HTTP interfaces 29 EXPOSE 8087 8098 30 31 CMD ["/usr/bin/supervisord"]