Fix: Replace deprecated OpenJDK Docker images with Eclipse Temurin #1246
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The official OpenJDK Docker images have been deprecated and removed from Docker Hub by Oracle, causing test failures with the error:
This issue affected all Kotlin test suites that relied on OpenJDK 8, 11, and 17 images.
Solution
This PR replaces all deprecated OpenJDK images with Eclipse Temurin images:
openjdk:8-jdk-slimeclipse-temurin:8-jdk-jammyopenjdk:11-jdk-slimeclipse-temurin:11-jdk-jammyopenjdk:17-jdk-slimeclipse-temurin:17-jdk-jammyBackground & Documentation
Eclipse Temurin is now the official OpenJDK distribution maintained by the Eclipse Foundation and the Adoptium Working Group. It provides:
-jammyvariant)Why OpenJDK Images Were Deprecated
Oracle announced the deprecation of the official
openjdkDocker images in favor of community-driven distributions. The Eclipse Adoptium project (formerly AdoptOpenJDK) is the recommended successor.References
Files Changed
tests/KotlinJava8Test.php- Updated Java 8 test environmenttests/KotlinJava11Test.php- Updated Java 11 test environmenttests/KotlinJava17Test.php- Updated Java 17 test environmentTesting
The tests should now run successfully without the Docker manifest error. All Kotlin SDK tests will use the new Eclipse Temurin images.
Impact
✅ No Breaking Changes - Eclipse Temurin is a drop-in replacement for OpenJDK
✅ Better Maintenance - Active community support and regular updates
✅ Fixes CI/CD - Resolves Docker image pull failures