Run in Docker container on Eclipse Temurin OpenJDK 21 instead of 17#826
Conversation
|
CI fails due to some Python version change: |
|
This PR should pass after rebasing to include 17e490e. |
8845878 to
9cb67e0
Compare
I now rebased on lastest master including the Python yield CI fix. |
|
Failed with: |
|
Seems Eclipse Temurin OpenJDK 21 is no longer available for https://adoptium.net/en-GB/supported-platforms/ The referenced tag: These are the currently supported architectures of Eclipse Temurin 21 JRE container on Docker Hub:
|
|
At some point in the future an update of the JRE major version will be necessary. I am not sure if The situation was actually already analysed by @snpz in #596 (comment) |
|
As I could also not find reputable base images still published for recent OpenJDK version with Alpine as a base image would then also no longer work, as they don't provide an Looks like Debian OpenJDK and Ubuntu OpenJDK would provide builds of OpenJDK for this architecture nicely via the package manager. So the architecture could be kept for the price of a bit bigger base image with this approach. Ideally from security perspective an even leaner base image like e.g. distroless or chisel would be better and less CVE noise. I think this would be possible with chisel too for more architectures. @gaul What do you prefer?
The current MR is the option (A). |
|
@gaul |
|
Thank you for your contribution @polarctos! Thanks for the feedback @snpz! |
OpenJDK 21 is the current LTS version
This provides for example improved GC performance compared to OpenJDK 17.
This only increases the runtime JRE version for the provided Docker container, thus the Java code and build itself stays with compatibility on version 11 but at runtime the newer JVM benefits can still already be used.
https://endoflife.date/eclipse-temurin