|
| 1 | +# AUTOMATICALLY GENERATED |
| 2 | +# DO NOT EDIT THIS FILE DIRECTLY, USE /templates/Dockerfile.erb |
| 3 | + |
| 4 | +# For multiarch build on Docker hub automated build. |
| 5 | +FROM fluent/fluentd:v1.19.0-debian-arm64 |
| 6 | + |
| 7 | +LABEL maintainer= "Eduardo Silva <[email protected]>" |
| 8 | +USER root |
| 9 | +WORKDIR /home/fluent |
| 10 | +ENV PATH /fluentd/vendor/bundle/ruby/3.4.0/bin:$PATH |
| 11 | +ENV GEM_PATH /fluentd/vendor/bundle/ruby/3.4.0 |
| 12 | +ENV GEM_HOME /fluentd/vendor/bundle/ruby/3.4.0 |
| 13 | +# skip runtime bundler installation |
| 14 | +ENV FLUENTD_DISABLE_BUNDLER_INJECTION 1 |
| 15 | + |
| 16 | +COPY Gemfile* /fluentd/ |
| 17 | +RUN buildDeps="sudo make gcc g++ libc-dev libffi-dev" \ |
| 18 | + runtimeDeps="" \ |
| 19 | + && apt-get update \ |
| 20 | + && apt-get upgrade -y \ |
| 21 | + && apt-get install \ |
| 22 | + -y --no-install-recommends \ |
| 23 | + $buildDeps $runtimeDeps net-tools \ |
| 24 | + && gem install bundler --version 2.4.17 \ |
| 25 | + && bundle config silence_root_warning true \ |
| 26 | + && bundle install --gemfile=/fluentd/Gemfile --path=/fluentd/vendor/bundle \ |
| 27 | + && SUDO_FORCE_REMOVE=yes \ |
| 28 | + apt-get purge -y --auto-remove \ |
| 29 | + -o APT::AutoRemove::RecommendsImportant=false \ |
| 30 | + $buildDeps \ |
| 31 | + '*-dev' \ |
| 32 | + && rm -rf /var/lib/apt/lists/* \ |
| 33 | + && gem sources --clear-all \ |
| 34 | + && rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem |
| 35 | +# Copy configuration files |
| 36 | +COPY ./conf/fluent.conf /fluentd/etc/ |
| 37 | +COPY ./conf/systemd.conf /fluentd/etc/ |
| 38 | +COPY ./conf/kubernetes.conf /fluentd/etc/ |
| 39 | +COPY ./conf/prometheus.conf /fluentd/etc/ |
| 40 | +COPY ./conf/tail_container_parse.conf /fluentd/etc/ |
| 41 | +COPY ./conf/kubernetes/*.conf /fluentd/etc/kubernetes/ |
| 42 | +RUN touch /fluentd/etc/disable.conf |
| 43 | + |
| 44 | +# Copy plugins |
| 45 | +COPY plugins /fluentd/plugins/ |
| 46 | +COPY entrypoint.sh /fluentd/entrypoint.sh |
| 47 | + |
| 48 | +# Environment variables |
| 49 | +ENV FLUENTD_OPT="" |
| 50 | +ENV FLUENTD_CONF="fluent.conf" |
| 51 | +# Override LD_PRELOAD in fluentd docker image |
| 52 | +# Set "/usr/lib/libjemalloc.so.2" if you want to enable jemalloc explicitly |
| 53 | +ENV LD_PRELOAD="" |
| 54 | + |
| 55 | +# Overwrite ENTRYPOINT to run fluentd as root for /var/log / /var/lib |
| 56 | +ENTRYPOINT ["tini", "--", "/fluentd/entrypoint.sh"] |
0 commit comments