2015-07-28 08:46:07 +02:00
|
|
|
FROM alpine:latest
|
2015-01-27 12:05:21 +01:00
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
2015-07-28 08:46:07 +02:00
|
|
|
RUN apk update && apk add \
|
2015-03-17 02:44:11 +01:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
2015-06-09 22:44:12 +02:00
|
|
|
unzip \
|
2015-07-28 08:46:07 +02:00
|
|
|
&& curl -sSL https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/6/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-2.21-r2.apk -o /tmp/glibc-2.21-r2.apk \
|
|
|
|
&& apk add --allow-untrusted /tmp/glibc-2.21-r2.apk \
|
|
|
|
&& curl -sSL https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/6/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-bin-2.21-r2.apk -o /tmp/glibc-bin-2.21-r2.apk \
|
|
|
|
&& apk add --allow-untrusted /tmp/glibc-bin-2.21-r2.apk \
|
|
|
|
&& rm -rf /tmp/glibc* \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
2015-06-09 22:44:12 +02:00
|
|
|
|
|
|
|
ENV CONSUL_VERSION 0.5.2
|
|
|
|
|
2015-07-28 08:46:07 +02:00
|
|
|
RUN curl -sSL https://jesss.s3.amazonaws.com/binaries/consul/${CONSUL_VERSION}/consul -o /bin/consul \
|
|
|
|
&& curl -sSL https://jesss.s3.amazonaws.com/binaries/curl-unix-socket -o /bin/curl-unix-socket \
|
|
|
|
&& curl -sSL https://jesss.s3.amazonaws.com/binaries/consul/${CONSUL_VERSION}/ui.zip -o /tmp/ui.zip \
|
2015-06-09 22:44:12 +02:00
|
|
|
&& unzip /tmp/ui.zip -d /usr/src/ \
|
|
|
|
&& rm -rf /tmp/ui.zip \
|
|
|
|
&& mv /usr/src/dist /usr/src/consul \
|
2015-06-05 19:24:11 +02:00
|
|
|
&& mkdir -p /etc/consul.d/ \
|
2015-07-28 08:46:07 +02:00
|
|
|
&& chmod +x /bin/consul \
|
|
|
|
&& chmod +x /bin/curl-unix-socket \
|
|
|
|
&& /usr/glibc/usr/bin/ldconfig /lib /usr/glibc/usr/lib
|
2015-01-27 12:05:21 +01:00
|
|
|
|
2015-07-28 08:46:07 +02:00
|
|
|
ENTRYPOINT [ "/bin/consul" ]
|