Skip to content

Conversation

@ChiragAgg5k
Copy link
Member

Problem

The official OpenJDK Docker images have been deprecated and removed from Docker Hub by Oracle, causing test failures with the error:

docker: Error response from daemon: manifest for openjdk:*-jdk-slim not found: manifest unknown

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:

Old Image New Image
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 & Documentation

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 for deprecated OpenJDK images
  • Regular security updates and long-term support
  • Built on Ubuntu 22.04 LTS (-jammy variant)
  • Community-driven, vendor-neutral OpenJDK builds

Why OpenJDK Images Were Deprecated

Oracle announced the deprecation of the official openjdk Docker 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 environment
  • tests/KotlinJava11Test.php - Updated Java 11 test environment
  • tests/KotlinJava17Test.php - Updated Java 17 test environment

Testing

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

## 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
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 4, 2025

Warning

Rate limit exceeded

@ChiragAgg5k has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 36 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 42df221 and 66303a3.

📒 Files selected for processing (3)
  • tests/KotlinJava11Test.php (1 hunks)
  • tests/KotlinJava17Test.php (1 hunks)
  • tests/KotlinJava8Test.php (1 hunks)
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-deprecated-openjdk-images

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@abnegate abnegate merged commit ad352a2 into master Nov 4, 2025
52 checks passed
@abnegate abnegate deleted the fix-deprecated-openjdk-images branch November 4, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants