Skip to content

Instantly share code, notes, and snippets.

@arslanm
Last active July 21, 2017 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arslanm/40ac24d2d1a48797600e95f4497fd236 to your computer and use it in GitHub Desktop.
Save arslanm/40ac24d2d1a48797600e95f4497fd236 to your computer and use it in GitHub Desktop.
Dockerfile for filebeat as DaemonSet
FROM centos:6
RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.5.0-x86_64.rpm && \
rpm -i filebeat-5.5.0-x86_64.rpm && \
rm -f filebeat-5.5.0-x86_64.rpm && \
mkdir -p /etc/filebeat
COPY filebeat.yml /etc/filebeat/filebeat.yml
RUN chmod 600 /etc/filebeat/filebeat.yml
ENTRYPOINT ["/usr/bin/filebeat.sh", "-e", "-v"]
CMD ["-c", "/etc/filebeat/filebeat.yml"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment