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

Commit

Permalink
fix broken package when building the image
Browse files Browse the repository at this point in the history
  • Loading branch information
tifayuki committed Feb 13, 2015
1 parent 4dd53de commit cd451b8
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
FROM ubuntu:trusty
FROM tutum/curl:trusty
MAINTAINER Israel Gayoso [email protected]

# Update the APT cache, add basho's repository and install packages
RUN sed -i.bak 's/main$/main universe/' /etc/apt/sources.list
RUN apt-get update && \
apt-get install -y apt-transport-https openssl pwgen
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

# Add riak's repository and install
ADD ./basho.apt.key /tmp/basho.apt.key
RUN apt-key add /tmp/basho.apt.key && rm /tmp/basho.apt.key
RUN echo "deb https://packagecloud.io/basho/riak/ubuntu/ trusty main" > /etc/apt/sources.list.d/basho.list
RUN apt-get update && apt-get install riak
RUN apt-get update
RUN apt-get install -y riak

# Riak's config
ENV RIAK_NODE_NAME "127.0.0.1"
Expand Down

0 comments on commit cd451b8

Please sign in to comment.