-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 843 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 843 Bytes
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
FROM ubuntu:trusty
MAINTAINER Andy Shinn <andys@andyshinn.as>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -q
RUN apt-get install -q -y haproxy supervisor unzip
ADD config/haproxy.enabled /etc/default/haproxy
ADD config/haproxy.cfg /etc/haproxy/haproxy.cfg
ADD config/supervisord-haproxy.conf /etc/supervisor/conf.d/haproxy.conf
ADD config/supervisord-serf.conf /etc/supervisor/conf.d/serf.conf
ADD scripts/handler /usr/local/bin/handler
ADD scripts/start_serf /usr/local/bin/start_serf
ADD scripts/logger /usr/local/bin/logger
ADD https://dl.bintray.com/mitchellh/serf/0.6.0_linux_amd64.zip serf.zip
RUN unzip serf.zip
RUN rm serf.zip
RUN mv serf /usr/local/bin/
RUN chmod +x /usr/local/bin/handler /usr/local/bin/start_serf
EXPOSE 8040/tcp 7946/tcp 7946/udp
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf", "-n"]