Dockerfile 918 B

123456789101112131415161718192021222324
  1. FROM docker.shemic.com/java/base:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. # set environment variable
  4. ENV KIBANA_HOME=/usr/local/kibana
  5. ENV KIBANA_VERSION=5.5.1
  6. ENV PATH=$PATH:$KIBANA_HOME/bin
  7. # install kibana
  8. RUN apk add --no-cache --update libstdc++ openjdk8 nodejs && \
  9. curl -O https://artifacts.elastic.co/downloads/kibana/kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz && \
  10. tar -xzvf kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz && \
  11. mv kibana-${KIBANA_VERSION}-linux-x86_64 $KIBANA_HOME && \
  12. rm kibana-${KIBANA_VERSION}-linux-x86_64.tar.gz && \
  13. cd $KIBANA_HOME && \
  14. sed -i 's/NODE="${DIR}\/node\/bin\/node"/NODE="node"/g' $KIBANA_HOME/bin/kibana && \
  15. sed -i 's/NODE="${DIR}\/node\/bin\/node"/NODE="node"/g' $KIBANA_HOME/bin/kibana-plugin && \
  16. kibana-plugin install x-pack && \
  17. apk del openjdk8
  18. COPY kibana.sh /entrypoint/kibana.sh
  19. VOLUME ["/usr/local/kibana/config"]