github.com/blystad/deis@v0.11.0/tests/etcdutils/Dockerfile (about)

     1  FROM ubuntu:12.04
     2  MAINTAINER Matt Boersma <matt@opdemand.com>
     3  
     4  # Install prerequisites: wget, git, and go.
     5  RUN apt-get update -q && DEBIAN_FRONTEND=noninteractive apt-get install -qy wget git-core
     6  RUN wget -qO- https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz | tar -C /usr/local -xz
     7  ENV PATH /usr/local/go/bin:$PATH
     8  
     9  # Build etcd v0.4.6. Keep this in sync with Deis' version.
    10  RUN git clone -q https://github.com/coreos/etcd.git /opt/etcd
    11  RUN cd /opt/etcd && git checkout -q v0.4.6 && ./build
    12  
    13  # Download latest stable etcdctl. Keep this in sync with Deis' version.
    14  ADD https://s3-us-west-2.amazonaws.com/opdemand/etcdctl-v0.4.6 /usr/local/bin/etcdctl
    15  RUN chmod +x /usr/local/bin/etcdctl
    16  
    17  EXPOSE 4001 7001
    18  CMD ["/opt/etcd/bin/etcd"]