Closed gulecroc closed 8 months ago
Thank to this issue : https://github.com/y-ken/fluent-plugin-geoip/issues/100
I extend the bitnami/fluentd image :
FROM bitnami/fluentd:1.16.3-debian-11-r3
USER root
RUN install_packages build-essential libgeoip-dev libmaxminddb-dev automake autoconf libtool zlib1g-dev
USER 1001
The geoip plugin is successfully built from bitnami/fluentd chart :
aggregator:
extraGems:
- fluent-plugin-geoip
The command behind this configuration is (executed as root) : https://github.com/bitnami/charts/blob/main/bitnami/fluentd/templates/aggregator-statefulset.yaml
cd /tmp
# install extra gems
fluent-gem install fluent-plugin-geoip --no-document
# copy installed gems to shared dir
cp -r /opt/bitnami/fluentd/gems/* /gems/
cp -r /opt/bitnami/fluentd/specifications/* /specifications/
When starting fluentd, the plugin is listed but the extensions does not work:
2024-01-26T14:34:20.184717082Z Ignoring geoip-c-0.9.1 because its extensions are not built. Try: gem pristine geoip-c --version 0.9.1
2024-01-26T14:34:20.185449192Z Ignoring geoip2_c-0.3.4 because its extensions are not built. Try: gem pristine geoip2_c --version 0.3.4
...
2024-01-26 14:34:20 +0000 [info]: gem 'fluent-plugin-geoip' version '1.3.2'
I find extensions directory in /opt/bitnami/fluentd/extensions
.
The directory content is needed for geoip plugin.
I close this issue and open a PR for bitnami/fluentd chart.
Name and Version
bitnami/fluentd:1.16.3-debian-11-r3
What architecture are you using?
None
What steps will reproduce the bug?
Trying to install fluentd geiop filter (https://docs.fluentd.org/filter/geoip) with bitnami/fluentd chart.
This plugin has prerequires : https://docs.fluentd.org/filter/geoip#prerequisites
I tried :
Init-container install-extra-gems errors :
Use my image in values
aggregator.image
, but same errors in init-container install-extra-gemsBuild is KO :
What is the expected behavior?
Install fluentd geoip gem with success since prerequires are packaged in fluend image
What do you see instead?
Command
fluent-gem install fluent-plugin-geoip
is in errorAdditional information
No response