Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Commit

Permalink
squash RUN in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tifayuki committed Feb 16, 2015
1 parent 40f74a3 commit 060a4cc
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
FROM tutum/curl:trusty
MAINTAINER Israel Gayoso [email protected]

RUN curl https://packagecloud.io/gpg.key | apt-key add -
RUN apt-get update
RUN apt-get install -y apt-transport-https supervisor openssl pwgen
RUN echo "deb https://packagecloud.io/basho/riak/ubuntu/ trusty main" >> /etc/apt/sources.list.d/basho.list
RUN echo "deb-src https://packagecloud.io/basho/riak/ubuntu/ trusty main" >> /etc/apt/sources.list.d/basho.list

RUN apt-get update
RUN apt-get install -y riak
RUN curl https://packagecloud.io/gpg.key | apt-key add - && \
apt-get update && \
apt-get install -y apt-transport-https supervisor openssl pwgen && \
echo "deb https://packagecloud.io/basho/riak/ubuntu/ trusty main" >> /etc/apt/sources.list.d/basho.list && \
echo "deb-src https://packagecloud.io/basho/riak/ubuntu/ trusty main" >> /etc/apt/sources.list.d/basho.list && \
apt-get update && \
apt-get install -y riak && \
rm -rf /var/lib/apt/lists/* && \
sed -i -e s/listener.http.internal/listener.https.internal/g /etc/riak/riak.conf

# Riak's config
ENV RIAK_NODE_NAME "127.0.0.1"
ADD ./app.config /etc/riak/app.config
RUN sed -i -e s/listener.http.internal/listener.https.internal/g /etc/riak/riak.conf

# Copy init script to make configuration after first run and password set
ADD ./run.sh /run.sh
ADD ./set_riak_password.sh /set_riak_password.sh
ADD ./create_certificate.sh /create_certificate.sh

ADD supervisord-riak.conf /etc/supervisor/conf.d/supervisord-riak.conf

# Expose protocol buffers and HTTPS
Expand Down

0 comments on commit 060a4cc

Please sign in to comment.