bump elk stack to 6.6.2, replace wget with aria2 to speed up d/l

This commit is contained in:
t3chn0m4g3
2019-03-15 22:23:30 +00:00
parent 5dae44b5e9
commit 573ceb98a1
3 changed files with 25 additions and 21 deletions

View File

@ -1,18 +1,19 @@
FROM node:10.15.1-alpine
FROM node:10.15.2-alpine
# Include dist
ADD dist/ /root/dist/
# Setup env and apt
RUN apk -U add \
curl \
wget && \
RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
apk -U --no-cache add \
aria2 \
curl && \
# Get and install packages
cd /root/dist/ && \
mkdir -p /usr/share/kibana/ && \
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.6.1-linux-x86_64.tar.gz && \
tar xvfz kibana-6.6.1-linux-x86_64.tar.gz --strip-components=1 -C /usr/share/kibana/ && \
aria2c -s 16 -x 16 https://artifacts.elastic.co/downloads/kibana/kibana-6.6.2-linux-x86_64.tar.gz && \
tar xvfz kibana-6.6.2-linux-x86_64.tar.gz --strip-components=1 -C /usr/share/kibana/ && \
# Kibana's bundled node does not work in alpine
rm /usr/share/kibana/node/bin/node && \
@ -47,7 +48,7 @@ RUN apk -U add \
chown -R kibana:kibana /usr/share/kibana/ && \
# Clean up
apk del --purge wget && \
apk del --purge aria2 && \
rm -rf /root/* && \
rm -rf /tmp/* && \
rm -rf /var/cache/apk/*