Dockerfile 673 B

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