Customize Fluentd docker image
What is Fluentd
Get started
#$:~/fluentd-docker$ tree .
.
├── Dockerfile
├── fluent.conf
└── plugins
1 directory, 2 filesFROM fluent/fluentd:v1.4-debian-onbuild
# Use root account to use apt
USER root
# below RUN includes plugin as examples elasticsearch is not required
# you may customize including plugins as you wish
RUN buildDeps="sudo make gcc g++ libc-dev ruby-dev" \
&& apt-get update \
&& apt-get install -y --no-install-recommends $buildDeps \
&& apt-get install -y libsystemd0 \
&& sudo gem install fluent-plugin-vmware-loginsight \
&& sudo gem install fluent-plugin-systemd -v 1.0.1 \
&& sudo gem sources --clear-all \
&& SUDO_FORCE_REMOVE=yes \
apt-get purge -y --auto-remove \
-o APT::AutoRemove::RecommendsImportant=false \
$buildDeps \
&& rm -rf /var/lib/apt/lists/* \
/home/fluent/.gem/ruby/2.3.0/cache/*.gem
USER fluentLast updated