This repository has been archived by the owner on Nov 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix broken package when building the image
- Loading branch information
Showing
1 changed file
with
8 additions
and
10 deletions.
There are no files selected for viewing
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
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" | ||
|