-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
24 lines (20 loc) · 999 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM rabbitmq:3.6.11
MAINTAINER Alex Salt <[email protected]>
ENV CONSUL_VERSION 0.7.0
# install consul
RUN apt-get update -qq && apt-get install -y --no-install-recommends ca-certificates wget unzip && \
wget https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip -O /tmp/consul.zip && \
unzip -d /usr/local/bin /tmp/consul.zip && \
rm -f /tmp/consul.zip && \
wget https://github.com/kreuzwerker/envplate/releases/download/v0.0.8/ep-linux -O /usr/local/bin/ep && \
chmod +x /usr/local/bin/ep && \
wget https://dl.influxdata.com/telegraf/releases/telegraf_1.1.1_amd64.deb -O /tmp/telegraf.deb && \
dpkg -i /tmp/telegraf.deb && \
apt-get purge -y wget unzip && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY entry-consul.sh /usr/local/bin/
COPY consul.tpl.json /etc/
COPY qsize.sh /usr/local/bin/
COPY telegraf.conf /etc/telegraf/
ENTRYPOINT [ "entry-consul.sh" ]
CMD [ "rabbitmq-server" ]