testcontainers-dotnet icon indicating copy to clipboard operation
testcontainers-dotnet copied to clipboard

[Enhancement]: Make `ingest.geoip.downloader.enabled` environment of elastic container optional

Open xzxzxc opened this issue 1 year ago • 0 comments

Problem

Not all elastic images are compatible with the ingest.geoip.downloader.enabled environment. We use a custom image which produces the following error

unknown setting [ingest.geoip.downloader.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings

Solution

Add an option in the constructor of ElasticsearchContainer, or a separate method, to prevent setting the ingest.geoip.downloader.enabled environment.

Benefit

A broader range of custom elastic images will be supported.

Alternatives

For now, we use the following workaround

.WithEnvironment("ingest.geoip.downloader.enabled", "")

Would you like to help contributing this enhancement?

Yes

xzxzxc avatar May 10 '24 13:05 xzxzxc