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.
This commit is contained in:
Feike Steenbergen
2015-06-17 14:08:51 +02:00
parent 72b980bd97
commit 526346a9c1
+5 -2
View File
@@ -1,8 +1,11 @@
## This Dockerfile is meant to aid in the building and debugging governor whilst developing on your local machine ## 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 ## 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 <[email protected]> MAINTAINER Feike Steenbergen <[email protected]>
# We need curl
RUN apt-get update -y && apt-get install curl -y
# Add PGDG repositories # 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 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 - 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 helpers /governor/helpers
ADD postgres0.yml /governor/ 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 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 ## Setting up a simple script that will serve as an entrypoint