blob: 05979c988a2301a14155e553a6ce3aff7fd9a00c [file] [log] [blame]
Tony Mackb9959142016-03-12 14:13:24 +00001FROM ubuntu:14.04.2
2
3ENV LOGSTASH_HOST 66.228.36.77
4
5RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --force-yes \
6 git \
7 golang \
8 supervisor
9
10RUN git clone git://github.com/elasticsearch/logstash-forwarder.git /tmp/logstash-forwarder
11RUN cd /tmp/logstash-forwarder && git checkout v0.4.0 && go build
12
13RUN mkdir /opt/logstash-forwarder && cp /tmp/logstash-forwarder/logstash-forwarder /opt/logstash-forwarder/logstash-forwarder
14
15ADD conf/config.json /opt/logstash-forwarder/config.json
16ADD conf/supervisord.conf /etc/supervisor/conf.d/logstash-forwarder.conf
17ADD run_logstash-forwarder /opt/logstash-forwarder/run_logstash-forwarder
18
19RUN chmod +x /opt/logstash-forwarder/run_logstash-forwarder
20
21RUN rm -rf /tmp/*
22
23VOLUME ["/opt/certs", "/var/log/"]
24
25CMD /opt/logstash-forwarder/run_logstash-forwarder
26
27