2015-04-12 16:09:49 +00:00
|
|
|
FROM itzg/ubuntu-openjdk-7
|
|
|
|
|
|
|
|
MAINTAINER itzg
|
|
|
|
|
2015-06-11 02:46:05 +00:00
|
|
|
ENV LOGSTASH_VERSION 1.5.0-1
|
2015-04-12 16:09:49 +00:00
|
|
|
|
2015-06-11 02:46:05 +00:00
|
|
|
RUN wget -qO /tmp/logstash.deb http://download.elastic.co/logstash/logstash/packages/debian/logstash_${LOGSTASH_VERSION}_all.deb
|
2015-04-12 16:09:49 +00:00
|
|
|
|
|
|
|
RUN dpkg -i /tmp/logstash.deb && rm /tmp/logstash.deb
|
|
|
|
|
|
|
|
WORKDIR /opt/logstash
|
|
|
|
|
|
|
|
# For collectd reception
|
|
|
|
EXPOSE 25826
|
|
|
|
|
|
|
|
# /conf is the default directory where our logstash will read pipeline config files
|
|
|
|
# /logs is an optional attach point to reference something like /var/log on the host
|
|
|
|
VOLUME ["/conf","/logs"]
|
|
|
|
|
2015-06-11 02:46:05 +00:00
|
|
|
ENV PLUGIN_UPDATES 2015-06-10
|
2015-04-12 16:09:49 +00:00
|
|
|
|
|
|
|
RUN bin/plugin install logstash-input-heartbeat
|
|
|
|
RUN bin/plugin install logstash-output-elasticsearch_groom
|
|
|
|
|
|
|
|
CMD ["bin/logstash","agent","-f","/conf"]
|