-
Notifications
You must be signed in to change notification settings - Fork 44
/
Dockerfile
24 lines (20 loc) · 956 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM haproxy:1.8.31-buster
LABEL maintainer="EEA: IDM2 A-Team <eea-edw-a-team-alerts@googlegroups.com>"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
python3-pip \
cron \
rsyslog \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& ln -s /usr/local/etc/haproxy /etc/haproxy \
&& sed -i '/#cron./c\cron.* \/proc\/1\/fd\/1' /etc/rsyslog.conf \
&& sed -i '/#$ModLoad imudp/c\$ModLoad imudp' /etc/rsyslog.conf \
&& sed -i '/#$UDPServerRun/c\$UDPServerRun 514' /etc/rsyslog.conf \
&& sed -i '/$UDPServerRun 514/a $UDPServerAddress 127.0.0.1' /etc/rsyslog.conf \
&& sed -i '/cron.*/a local2.* \/proc\/1\/fd\/1' /etc/rsyslog.conf \
&& mv /usr/local/bin/docker-entrypoint.sh /usr/local/bin/haproxy-entrypoint.sh
COPY src/haproxy.cfg /tmp/
COPY src/configure.py src/track_hosts src/track_dns /
COPY docker-entrypoint.sh /usr/local/bin/