-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM haproxy:1.8.29
LABEL maintainer="EEA: IDM2 A-Team <eea-edw-a-team-alerts@googlegroups.com>"
LABEL contributor="Nguyễn Văn Hiệp <nguyenhiepvan.bka@gmail.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 src/append.py /
COPY docker-entrypoint.sh /usr/local/bin/