From 526346a9c1206c5cd1883ff5e41dbf4751050fbd Mon Sep 17 00:00:00 2001 From: Feike Steenbergen Date: Wed, 17 Jun 2015 14:08:51 +0200 Subject: [PATCH] Dockerfile: Reduce size and dependency, update etcd. The Dockerfile now only builds upon the publicly available Ubuntu docker image, thereby reducing the size of the image. etcd release 2.0.12 was released today as well, updated that dependency. --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d7073a04..d44a9af3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,11 @@ ## This Dockerfile is meant to aid in the building and debugging governor whilst developing on your local machine ## It has all the necessary components to play/debug with a single node appliance, running etcd -FROM zalando/ubuntu:14.04.1-1 +FROM ubuntu:14.04 MAINTAINER Feike Steenbergen +# We need curl +RUN apt-get update -y && apt-get install curl -y + # Add PGDG repositories RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - @@ -19,7 +22,7 @@ ADD governor.py /governor/governor.py ADD helpers /governor/helpers ADD postgres0.yml /governor/ -ENV ETCDVERSION 2.0.11 +ENV ETCDVERSION 2.0.12 RUN curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION}/etcd-v${ETCDVERSION}-linux-amd64.tar.gz | tar xz -C /bin --strip=1 --wildcards --no-anchored etcd etcdctl ## Setting up a simple script that will serve as an entrypoint