blob: 2c9ad7b895963442fd703a496ad027c0589d28da [file] [log] [blame]
Tony Mackb9959142016-03-12 14:13:24 +00001FROM ubuntu:14.04.2
2
3RUN echo "deb http://packages.elasticsearch.org/logstash/1.5/debian stable main" | sudo tee -a /etc/apt/sources.list
4
5RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --force-yes \
6 wget \
7 ca-certificates \
8 openjdk-7-jre-headless \
9 supervisor \
10 logstash
11
12
13
14RUN mkdir /opt/logstash/plugins
15ADD conf/supervisord.conf /etc/supervisor/conf.d/logstash.conf
16ADD conf/logstash.conf /opt/logstash/logstash.conf
17ADD conf/collectd-types.db /opt/logstash/collectd-types.db
18ADD conf/filter_rsyslog.conf /etc/logstash/plugins/filter_rsyslog.conf
19
20VOLUME ["/opt/logstash/certs"]
21
22EXPOSE 514
23EXPOSE 5043
24EXPOSE 9292
25
26CMD /usr/bin/supervisord -c /etc/supervisor/conf.d/logstash.conf