running_riak_service.Dockerfile 1003 B

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