Dockerfile 619 B

12345678910111213141516171819
  1. FROM docker.shemic.com/java/base:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. # set environment variable
  4. ENV LOGSTASH_HOME=/usr/local/logstash
  5. ENV LOGSTASH_VERSION=5.5.1
  6. ENV PATH=$PATH:$LOGSTASH_HOME/bin
  7. # install logstash
  8. RUN curl -O https://artifacts.elastic.co/downloads/logstash/logstash-${LOGSTASH_VERSION}.tar.gz && \
  9. tar -xzvf logstash-${LOGSTASH_VERSION}.tar.gz && \
  10. mv logstash-${LOGSTASH_VERSION} $LOGSTASH_HOME && \
  11. rm logstash-${LOGSTASH_VERSION}.tar.gz && \
  12. mkdir -p /root/logstash
  13. COPY logstash.sh /entrypoint/logstash.sh
  14. VOLUME ["/usr/local/logstash/config", "/root/logstash"]