-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·30 lines (23 loc) · 1 KB
/
Dockerfile
File metadata and controls
executable file
·30 lines (23 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM yaronr/debian-wheezy
MAINTAINER yaronr
ENV ETCD_NODE 172.17.42.1:4001
ENV confd_ver 0.7.1
ENTRYPOINT ["/entrypoint.sh"]
RUN (echo "deb http://cdn.debian.net/debian wheezy-backports main" > /etc/apt/sources.list.d/backports.list) && \
DEBIAN_FRONTEND=noninteractive apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
ca-certificates \
libssl1.0.0 \
software-properties-common python-software-properties \
haproxy -t wheezy-backports && \
apt-get remove --purge -y software-properties-common python-software-properties && \
apt-get clean && \
rm -rf /var/cache/apt/* /var/lib/apt/lists/* && \
sed -i 's/^ENABLED=.*/ENABLED=1/' /etc/default/haproxy
RUN wget --progress=bar:force --retry-connrefused -t 5 https://github.com/kelseyhightower/confd/releases/download/v${confd_ver}/confd-${confd_ver}-linux-amd64 -O /bin/confd && \
chmod +x /bin/confd
ADD entrypoint.sh /entrypoint.sh
ADD confd /etc/confd
# Expose ports.
EXPOSE 8080
EXPOSE 8090