Public | Automated Build

Last pushed: 3 months ago
FROM alpine:3.4 MAINTAINER TAGOMORI Satoshi <> LABEL Description="Fluentd docker image" Vendor="Fluent Organization" Version="1.1" # Do not split this into multiple RUN! # Docker creates a layer for every RUN-Statement # therefore an 'apk delete build*' has no effect RUN apk --no-cache --update add \ build-base \ ca-certificates \ ruby \ ruby-irb \ ruby-dev && \ echo 'gem: --no-document' >> /etc/gemrc && \ gem install oj && \ gem install fluentd && \ apk del build-base ruby-dev && \ rm -rf /tmp/* /var/tmp/* /var/cache/apk/* RUN fluent-gem install fluent-plugin-secure-forward && \ fluent-gem install fluent-plugin-elasticsearch && \ fluent-gem install fluent-plugin-record-reformer # for log storage (maybe shared with host) RUN mkdir -p /fluentd/log # configuration/plugins path (default: copied from .) RUN mkdir -p /fluentd/etc /fluentd/plugins # Tell ruby to install packages as user RUN echo "gem: --user-install --no-document" >> ~/.gemrc ENV PATH ~/.gem/ruby/2.3.0/bin:$PATH ENV GEM_PATH ~/.gem/ruby/2.3.0:$GEM_PATH ADD fluent.conf /fluentd/etc/ ENV FLUENTD_OPT="" ENV FLUENTD_CONF="fluent.conf" EXPOSE 24224 5140 CMD exec fluentd -c /fluentd/etc/$FLUENTD_CONF -p /fluentd/plugins $FLUENTD_OPT
Source Repository