irods / contrib

A pooled collection of community-contributed code that works alongside iRODS
BSD 3-Clause "New" or "Revised" License
13 stars 19 forks source link

Investigate swapping JDK for JRE in elk stack container #29

Open SwooshyCueb opened 2 years ago

SwooshyCueb commented 2 years ago

With #26, we are now using Temurin's JDK instead of the JDK/JRE provided by the distribution or the JDK/JRE bundled with elasticsearch.

The decision not to use elasticsearch's bundled JDK/JRE was made for two reasons:

Temurin was chosen over the distro-provided JDK/JRE for a few reasons:

Given that we are no longer installing plugins in logstash, it is likely that we do not need a full JDK. However, after the AdoptOpenJDK working group was absorbed into the Eclipse foundation and became Adoptium, JRE-only packages (and OpenJ9 packages) were no longer provided in the apt repositories. Eclipse provides a focal-based docker image containing JRE-only Temurin 17 [Dockerfile], but it is not set up to work properly with Ubuntu's java-common system so it cannot be used. Fortunately, Adoptium has a couple of blog posts that might help us out:

SwooshyCueb commented 2 years ago

More rationale for doing this: Adoptium's apt repository is hosted behind a cloudflare gateway, which will sometimes block attempts to download the package from within a container.