From 66303a3511e39eadbcb25f25f265f9c6828ad743 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Tue, 4 Nov 2025 14:24:49 +0530 Subject: [PATCH] Fix: Replace deprecated OpenJDK Docker images with Eclipse Temurin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem The official OpenJDK Docker images have been deprecated and removed from Docker Hub by Oracle, causing test failures with the error: "manifest for openjdk:*-jdk-slim not found: manifest unknown" This issue affected all Kotlin test suites that relied on OpenJDK 8, 11, and 17. ## Solution Replaced all deprecated OpenJDK images with Eclipse Temurin images: - `openjdk:8-jdk-slim` → `eclipse-temurin:8-jdk-jammy` - `openjdk:11-jdk-slim` → `eclipse-temurin:11-jdk-jammy` - `openjdk:17-jdk-slim` → `eclipse-temurin:17-jdk-jammy` ## Background Eclipse Temurin is now the official OpenJDK distribution maintained by the Eclipse Foundation and the Adoptium Working Group. It provides fully compatible, drop-in replacement images for the deprecated OpenJDK images. The `-jammy` variant is based on Ubuntu 22.04 LTS and provides a similar environment to the previous `-slim` images. ## References - https://hub.docker.com/_/eclipse-temurin - https://adoptium.net/ ## Files Changed - tests/KotlinJava8Test.php - tests/KotlinJava11Test.php - tests/KotlinJava17Test.php --- tests/KotlinJava11Test.php | 2 +- tests/KotlinJava17Test.php | 2 +- tests/KotlinJava8Test.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/KotlinJava11Test.php b/tests/KotlinJava11Test.php index d970c1122..fab40bb4a 100644 --- a/tests/KotlinJava11Test.php +++ b/tests/KotlinJava11Test.php @@ -17,7 +17,7 @@ class KotlinJava11Test extends Base 'chmod +x tests/sdks/kotlin/gradlew', ]; protected string $command = - 'docker run --network="mockapi" -v $(pwd):/app -w /app/tests/sdks/kotlin openjdk:11-jdk-slim sh -c "./gradlew test -q && cat result.txt"'; + 'docker run --network="mockapi" -v $(pwd):/app -w /app/tests/sdks/kotlin eclipse-temurin:11-jdk-jammy sh -c "./gradlew test -q && cat result.txt"'; protected array $expectedOutput = [ ...Base::PING_RESPONSE, diff --git a/tests/KotlinJava17Test.php b/tests/KotlinJava17Test.php index 1ab94685b..ac117f47d 100644 --- a/tests/KotlinJava17Test.php +++ b/tests/KotlinJava17Test.php @@ -17,7 +17,7 @@ class KotlinJava17Test extends Base 'chmod +x tests/sdks/kotlin/gradlew', ]; protected string $command = - 'docker run --network="mockapi" -v $(pwd):/app -w /app/tests/sdks/kotlin openjdk:17-jdk-slim sh -c "./gradlew test -q && cat result.txt"'; + 'docker run --network="mockapi" -v $(pwd):/app -w /app/tests/sdks/kotlin eclipse-temurin:17-jdk-jammy sh -c "./gradlew test -q && cat result.txt"'; protected array $expectedOutput = [ ...Base::PING_RESPONSE, diff --git a/tests/KotlinJava8Test.php b/tests/KotlinJava8Test.php index 81717471d..41fe724e1 100644 --- a/tests/KotlinJava8Test.php +++ b/tests/KotlinJava8Test.php @@ -17,7 +17,7 @@ class KotlinJava8Test extends Base 'chmod +x tests/sdks/kotlin/gradlew', ]; protected string $command = - 'docker run --network="mockapi" --rm -v $(pwd):/app -w /app/tests/sdks/kotlin openjdk:8-jdk-slim sh -c "./gradlew test -q && cat result.txt"'; + 'docker run --network="mockapi" --rm -v $(pwd):/app -w /app/tests/sdks/kotlin eclipse-temurin:8-jdk-jammy sh -c "./gradlew test -q && cat result.txt"'; protected array $expectedOutput = [ ...Base::PING_RESPONSE,