Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit eb93c64

Browse files
committed
move reload.sh to a separate file
1 parent ffa948b commit eb93c64

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@ RUN echo 'deb http://ppa.launchpad.net/vbernat/haproxy-1.5/ubuntu trusty main' >
88
apt-get update && \
99
apt-get install -y --no-install-recommends haproxy python-pip && \
1010
apt-get clean && \
11-
rm -rf /var/lib/apt/lists/* && \
12-
echo '#!/bin/sh' > /reload.sh && \
13-
echo 'kill -USR1 $(cat /tmp/dockercloud-haproxy.pid)' >> /reload.sh && \
14-
chmod +x /reload.sh
11+
rm -rf /var/lib/apt/lists/*
1512

13+
COPY reload.sh /reload.sh
1614
COPY . haproxy-src/
1715
RUN cd /haproxy-src/ && \
1816
pip install .
1917

20-
2118
ENV RSYSLOG_DESTINATION=127.0.0.1 \
2219
MODE=http \
2320
BALANCE=roundrobin \

reload.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
kill -USR1 $(cat /tmp/dockercloud-haproxy.pid)

0 commit comments

Comments
 (0)