Skip to content

Instantly share code, notes, and snippets.

@nalanj
Created August 25, 2018 13:43
Show Gist options
  • Save nalanj/c3f5fd8fca25d10633c09461ba42c470 to your computer and use it in GitHub Desktop.
Save nalanj/c3f5fd8fca25d10633c09461ba42c470 to your computer and use it in GitHub Desktop.
FROM fluent/fluentd:onbuild
# below RUN includes plugin as examples elasticsearch is not required
# you may customize including plugins as you wish
RUN apk add --update --virtual .build-deps \
sudo build-base ruby-dev \
&& sudo gem install \
fluent-plugin-elasticsearch \
&& sudo gem sources --clear-all \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/* \
/home/fluent/.gem/ruby/2.4.0/cache/*.gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment