Docker build failing for v2.4.2
ERROR: Error installing fluent-plugin-kubernetes_metadata_filter: zeitwerk requires Ruby version >= 2.4.4. Successfully installed unf_ext-0.0.7.6 Successfully installed unf-0.1.4 Successfully installed domain_name-0.5.20190701 Successfully installed http-cookie-1.0.3 Successfully installed http-form_data-1.0.3 Successfully installed http-0.9.8 Successfully installed recursive-open-struct-1.0.0 Successfully installed concurrent-ruby-1.1.5
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application.
Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x.
For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Successfully installed i18n-1.7.0 The command '/bin/sh -c [ -f /bin/entrypoint.sh ] && /bin/entrypoint.sh echo || : && apt-get update && apt-get install -y build-essential ruby-dev libffi-dev libsystemd-dev && gem install fluent-plugin-s3 -v 1.1.4 && gem install fluent-plugin-systemd -v 0.3.1 && gem install fluent-plugin-record-reformer -v 0.9.1 && gem install fluent-plugin-kubernetes_metadata_filter -v 1.0.2 && gem install fluent-plugin-sumologic_output -v 1.4.0 && gem install fluent-plugin-concat -v 2.3.0 && gem install fluent-plugin-rewrite-tag-filter -v 2.1.0 && gem install fluent-plugin-prometheus -v 1.1.0 && gem install fluent-plugin-kubernetes_sumologic && rm -rf /home/fluent/.gem/ruby/2.3.0/cache/.gem && gem sources -c && apt-get remove --purge -y build-essential ruby-dev libffi-dev libsystemd-dev && rm -rf /var/lib/apt/lists/' returned a non-zero code: 1
Was able to install using with these 2 changes in Dockerfile.
FROM fluent/fluentd:v1.7.0-debian-1.0 AS builder USER root . . . . .