Skip to content

chore(deps): update openjdk docker tag to v11 - autoclosed#14206

Closed
renovate-bot wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/openjdk-11.x
Closed

chore(deps): update openjdk docker tag to v11 - autoclosed#14206
renovate-bot wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/openjdk-11.x

Conversation

@renovate-bot

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
openjdk stage major 8-jre-slim11.0.16-jre-slim

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested review from a team as code owners May 21, 2026 16:13
@trusted-contributions-gcf trusted-contributions-gcf Bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels May 21, 2026
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 21, 2026
@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label May 21, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the JRE base image in the Dockerfile from OpenJDK 8 to OpenJDK 11.0.16. A critical issue was identified where the file paths, environment variables, and system alternatives still reference the old OpenJDK 8 directory, which does not exist in the new image and will lead to build failures.

Comment on lines +24 to 26
COPY --from=openjdk:11.0.16-jre-slim /usr/local/openjdk-8 /usr/local/openjdk-8
ENV JAVA_HOME /usr/local/openjdk-8
RUN update-alternatives --install /usr/bin/java java /usr/local/openjdk-8/bin/java 10

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The source path /usr/local/openjdk-8 does not exist in the openjdk:11.0.16-jre-slim image; the correct path for this version is /usr/local/openjdk-11. Additionally, the destination path, JAVA_HOME environment variable, and update-alternatives configuration should be updated to reflect the version change to ensure consistency and avoid build failures.

COPY --from=openjdk:11.0.16-jre-slim /usr/local/openjdk-11 /usr/local/openjdk-11
ENV JAVA_HOME /usr/local/openjdk-11
RUN update-alternatives --install /usr/bin/java java /usr/local/openjdk-11/bin/java 10 

@renovate-bot renovate-bot changed the title chore(deps): update openjdk docker tag to v11 chore(deps): update openjdk docker tag to v11 - autoclosed May 21, 2026
@renovate-bot renovate-bot deleted the renovate/openjdk-11.x branch May 21, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

owlbot:run Add this label to trigger the Owlbot post processor. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants