github.com/misfo/deis@v1.0.1-0.20141111224634-e0eee0392b8a/tests/etcdutils/Dockerfile (about) 1 FROM ubuntu-debootstrap:14.04 2 3 ENV DEBIAN_FRONTEND noninteractive 4 5 # install common packages 6 RUN apt-get update && apt-get install -y curl net-tools sudo 7 8 # install etcdctl 9 RUN curl -sSL -o /usr/local/bin/etcdctl https://s3-us-west-2.amazonaws.com/opdemand/etcdctl-v0.4.6 \ 10 && chmod +x /usr/local/bin/etcdctl 11 12 # build etcd and then clean up 13 RUN buildDeps='curl git-core'; \ 14 set -x; \ 15 export DEBIAN_FRONTEND=noninteractive; \ 16 apt-get update && apt-get install -y $buildDeps --no-install-recommends \ 17 && curl -sSL https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz | tar -C /usr/local -xz \ 18 && git clone -q https://github.com/coreos/etcd.git /opt/etcd \ 19 && cd /opt/etcd && git checkout -q v0.4.6 && PATH=/usr/local/go/bin:$PATH ./build \ 20 && cp /opt/etcd/bin/etcd /usr/local/bin \ 21 && cd && rm -rf /usr/local/go /opt/etcd \ 22 && apt-get purge -y $buildDeps \ 23 && apt-get autoremove -y && apt-get clean 24 25 EXPOSE 4001 7001 26 CMD ["/usr/local/bin/etcd"]