Tony Mack | dc98185 | 2016-03-12 14:13:24 +0000 | [diff] [blame^] | 1 | FROM ubuntu:14.04.2 |
| 2 | |
| 3 | RUN echo "deb http://packages.elasticsearch.org/logstash/1.5/debian stable main" | sudo tee -a /etc/apt/sources.list |
| 4 | |
| 5 | RUN 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 | |
| 14 | RUN mkdir /opt/logstash/plugins |
| 15 | ADD conf/supervisord.conf /etc/supervisor/conf.d/logstash.conf |
| 16 | ADD conf/logstash.conf /opt/logstash/logstash.conf |
| 17 | ADD conf/collectd-types.db /opt/logstash/collectd-types.db |
| 18 | ADD conf/filter_rsyslog.conf /etc/logstash/plugins/filter_rsyslog.conf |
| 19 | |
| 20 | VOLUME ["/opt/logstash/certs"] |
| 21 | |
| 22 | EXPOSE 514 |
| 23 | EXPOSE 5043 |
| 24 | EXPOSE 9292 |
| 25 | |
| 26 | CMD /usr/bin/supervisord -c /etc/supervisor/conf.d/logstash.conf |