forked from pblittle/docker-logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 653 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (21 loc) · 653 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
26
27
FROM java:7-jre
MAINTAINER Benoît Pourre <benoit.pourre@gmail.com>
# Thanks to P. Barrett Little <barrett@barrettlittle.com>
# Download version 1.4.2 of logstash
RUN cd /tmp && \
wget https://download.elasticsearch.org/logstash/logstash/logstash-1.4.2.tar.gz && \
tar -xzvf ./logstash-1.4.2.tar.gz && \
mv ./logstash-1.4.2 /opt/logstash && \
rm ./logstash-1.4.2.tar.gz
# Install contrib plugins
RUN /opt/logstash/bin/plugin install contrib
# Copy build files to container root
RUN mkdir /app
ADD . /app
# Kibana
EXPOSE 9292
# Volume for Logstash's conf file
VOLUME /data
VOLUME /logs
# Start logstash
ENTRYPOINT ["/app/bin/boot"]