2015-02-02 21:01:04 +01:00
|
|
|
FROM debian:jessie
|
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
2015-06-05 20:55:25 +02:00
|
|
|
ENV CONSUL_VERSION 0.5.2
|
2015-03-17 03:03:26 +01:00
|
|
|
|
2015-02-02 21:01:04 +01:00
|
|
|
ADD https://jesss.s3.amazonaws.com/binaries/consul-alerts /usr/local/bin/consul-alerts
|
2015-03-17 03:03:26 +01:00
|
|
|
ADD https://jesss.s3.amazonaws.com/binaries/consul/${CONSUL_VERSION}/consul /usr/local/bin/consul
|
2015-02-02 21:01:04 +01:00
|
|
|
ADD https://jesss.s3.amazonaws.com/binaries/curl-unix-socket /usr/local/bin/curl-unix-socket
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2015-06-05 19:24:11 +02:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
2015-06-07 02:48:44 +02:00
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2015-06-05 19:24:11 +02:00
|
|
|
&& mkdir -p /etc/consul.d/ \
|
|
|
|
&& chmod +x /usr/local/bin/consul \
|
|
|
|
&& chmod +x /usr/local/bin/curl-unix-socket \
|
|
|
|
&& chmod +x /usr/local/bin/consul-alerts
|
2015-02-02 21:01:04 +01:00
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/consul-alerts", "start" ]
|