fluent/fluentd-docker-image

Fluentd v1.15 docker image should bundle XML library gem by default

cosmo0920 opened this issue · 2 comments

On upgrading Ruby version to 3.1, REXML is dropped from the default gems.
AWS related plugin such as fluent-plugin-opensearch and fluent-plugin-s3 are failed to start due to missing XML library gem such as REXML and nokogiri.

For lightweight dependencies, we should bundle REXML as XML library by default.
This issue is originally reported in: fluent/fluent-plugin-opensearch#73 (comment)

ashie commented

I didn't include rexml gem intentionally since fluentd itself doesn't use it.
We shouldn't include unused gems into our Docker image basically.
But now I agree with you that it's better to include well used gems such as rexml.
aws-sdk gem (which requires a XML library implicitly) is required in various inherited Docker images, so that it's troublesome to update them individually.

Yup, we did break backward compatibility for derived Dockerfiles. Even if we don't include XML library, we have to add a note for XML library at least.