-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (19 loc) · 750 Bytes
/
Dockerfile
File metadata and controls
23 lines (19 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM asia.gcr.io/ct-prod-infra/haproxybase:23_08_19
LABEL maintainer="ravi.ranjan@cleartrip.com>"
RUN set -exo pipefail \
&& apk add --no-cache \
rsyslog tzdata\
&& apk del syslog-ng \
&& mkdir -p /etc/rsyslog.d \
&& touch /var/log/haproxy.log \
&& ln -sf /dev/stdout /var/log/haproxy.log \
&& cp /usr/share/zoneinfo/Asia/Calcutta /etc/localtime \
&& echo "Asia/Calcutta" > /etc/timezone \
&& apk del tzdata
COPY docker-entrypoint.sh /
COPY rsyslog.conf /etc/rsyslog.d/
RUN mkdir -p /usr/local/etc/haproxy/
COPY 200pingdom.http /usr/local/etc/haproxy/200pingdom.http
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["-f", "/usr/local/etc/haproxy/haproxy.cfg"]