bump elk stack to 6.5.1

fix docker hub build
This commit is contained in:
t3chn0m4g3
2018-11-22 23:18:59 +00:00
parent b1ee78b1bc
commit 5e8345695f
4 changed files with 39 additions and 29 deletions

View File

@ -4,22 +4,22 @@ FROM alpine
ADD dist/ /root/dist/
# Setup env and apt
RUN apk -U --no-cache add \
bash \
curl \
git \
libc6-compat \
libzmq \
openjdk8-jre \
wget && \
RUN apk -U add \
bash \
curl \
git \
libc6-compat \
libzmq \
openjdk8-jre \
wget && \
# Get and install packages
git clone --depth=1 https://github.com/dtag-dev-sec/listbot /etc/listbot && \
cd /root/dist/ && \
mkdir -p /usr/share/logstash/ && \
wget https://artifacts.elastic.co/downloads/logstash/logstash-6.4.3.tar.gz && \
wget https://artifacts.elastic.co/downloads/logstash/logstash-6.5.1.tar.gz && \
wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz && \
tar xvfz logstash-6.4.3.tar.gz --strip-components=1 -C /usr/share/logstash/ && \
tar xvfz logstash-6.5.1.tar.gz --strip-components=1 -C /usr/share/logstash/ && \
/usr/share/logstash/bin/logstash-plugin install logstash-filter-translate && \
/usr/share/logstash/bin/logstash-plugin install logstash-output-syslog && \
tar xvfz GeoLite2-ASN.tar.gz --strip-components=1 -C /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-filter-geoip-5.0.3-java/vendor/ && \
@ -42,6 +42,7 @@ RUN apk -U --no-cache add \
# Clean up
apk del --purge wget && \
rm -rf /root/* && \
rm -rf /tmp/* && \
rm -rf /var/cache/apk/*
# Healthcheck
@ -49,4 +50,4 @@ HEALTHCHECK --retries=10 CMD curl -s -XGET 'http://127.0.0.1:9600'
# Start logstash
#USER logstash:logstash
CMD update.sh && exec /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf
CMD update.sh && exec /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf --java-execution