Skip to content

Instantly share code, notes, and snippets.

@wshihadeh
Created July 11, 2020 10:41
Show Gist options
  • Save wshihadeh/8e2a2fad7ae8bc62d32b5efeebcacd38 to your computer and use it in GitHub Desktop.
Save wshihadeh/8e2a2fad7ae8bc62d32b5efeebcacd38 to your computer and use it in GitHub Desktop.
FROM fluent/fluentd:v1.11-1
MAINTAINER Al-waleed Shihadeh <[email protected]>
COPY ./*.conf /fluentd/etc/
COPY entrypoint.sh /bin/
USER root
RUN apk add --update --virtual .build-deps \
sudo build-base ruby-dev \
&& sudo gem install \
fluent-plugin-elasticsearch \
fluent-plugin-filter-docker_metadata \
fluent-plugin-filter-kv-parser \
&& sudo gem sources --clear-all \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/* \
/home/fluent/.gem/ruby/2.3.0/cache/*.gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment