Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade kibana to version 5.1.1 and Alpine to 3.4 #10

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions alpine-kibana/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
FROM alpine:3.2
FROM alpine:3.4
MAINTAINER kost, https://github.com/kost/docker-alpine

# Set environment variables
ENV KIBANA_VERSION 4.1.1
ENV KIBANA_VERSION 5.1.1
ENV PKG_NAME kibana
ENV PKG_PLATFORM linux-x64
ENV PKG_PLATFORM linux-x86_64
ENV KIBANA_PKG $PKG_NAME-$KIBANA_VERSION-$PKG_PLATFORM
ENV KIBANA_CONFIG /opt/$PKG_NAME-$KIBANA_VERSION-$PKG_PLATFORM/config/kibana.yml
ENV KIBANA_URL https://download.elastic.co/$PKG_NAME/$PKG_NAME/$KIBANA_PKG.tar.gz
ENV KIBANA_URL https://artifacts.elastic.co/downloads/$PKG_NAME/$KIBANA_PKG.tar.gz
ENV ELASTICSEARCH_HOST elasticsearch

# add our user and group first to make sure their IDs get assigned consistently
RUN addgroup -S kibana && adduser -S -h /home/kibana -G kibana kibana

# Download Kibana
RUN apk add --update ca-certificates wget nodejs \
&& mkdir -p /opt \
&& wget -O /tmp/$KIBANA_PKG.tar.gz $KIBANA_URL \
&& tar -xvzf /tmp/$KIBANA_PKG.tar.gz -C /opt/ \
&& ln -s /opt/$KIBANA_PKG /opt/$PKG_NAME \
&& sed -i "s/localhost/$ELASTICSEARCH_HOST/" $KIBANA_CONFIG \
&& sed -ri "s!^(\#\s*)?(elasticsearch\.url:).*!\2 'http://$ELASTICSEARCH_HOST:9200'!" $KIBANA_CONFIG \
&& sed -ri "s!^(\#\s*)?(server\.host:).*!\2 '0.0.0.0'!" $KIBANA_CONFIG \
&& rm -rf /tmp/*.tar.gz /var/cache/apk/* /opt/$KIBANA_PKG/node/ \
&& mkdir -p /opt/$KIBANA_PKG/node/bin/ \
&& ln -s $(which node) /opt/$PKG_NAME/node/bin/node
&& ln -s $(which node) /opt/$PKG_NAME/node/bin/node \
&& chown -R kibana:kibana /opt/$PKG_NAME

# Expose
EXPOSE 5601

USER nobody
WORKDIR /opt/kibana

# Working directory
WORKDIR ["/opt/kibana"]
CMD ["/opt/kibana/bin/kibana"]