Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

Plan: Migrate from deprecated openjdk image to Microsoft OpenJDK

  • Explore repository structure and identify openjdk usage
  • Update Dockerfile.template to use mcr.microsoft.com/openjdk/jdk:21-ubuntu
  • Revert unrelated package-lock.json changes
  • Run linter to ensure changes are valid
  • Verify the template file is properly updated
  • Complete final review and security check

Summary

Successfully migrated the Java Dockerfile template from the deprecated openjdk:21-jdk-alpine image to the Microsoft OpenJDK image mcr.microsoft.com/openjdk/jdk:21-ubuntu.

Changes Made:

  • Updated /resources/templates/java/Dockerfile.template to use the Microsoft OpenJDK base image
  • Maintained Java version 21 for compatibility
  • Changed from Alpine Linux to Ubuntu base
  • Reverted unrelated package-lock.json changes per review feedback

Validation:

  • ✅ Linter passed (npm run lint)
  • ✅ Build successful (npm run build)
  • ✅ CodeQL security check passed
  • ✅ Code review completed

Security Summary:

No security vulnerabilities were introduced by this change. The migration to the Microsoft OpenJDK image provides a supported and maintained base image.

Original prompt

This section details on the original issue you should resolve

<issue_title>openjdk image is deprecated</issue_title>
<issue_description>The openjdk image we use as a base for Java projects is deprecated. We should move to mcr.microsoft.com/openjdk/jdk:25-ubuntu or similar.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: bwateratmsft <36966225+bwateratmsft@users.noreply.github.com>
Copilot AI changed the title [WIP] Update base image from openjdk to mcr.microsoft.com/openjdk/jdk Replace deprecated openjdk image with Microsoft OpenJDK Feb 10, 2026
Copilot AI requested a review from bwateratmsft February 10, 2026 15:07
Co-authored-by: bwateratmsft <36966225+bwateratmsft@users.noreply.github.com>
@bwateratmsft bwateratmsft marked this pull request as ready for review February 10, 2026 15:23
@bwateratmsft bwateratmsft requested a review from a team as a code owner February 10, 2026 15:23
@bwateratmsft bwateratmsft enabled auto-merge (squash) February 10, 2026 15:23
@bwateratmsft bwateratmsft merged commit d692fec into main Feb 10, 2026
2 checks passed
@bwateratmsft bwateratmsft deleted the copilot/update-openjdk-image branch February 10, 2026 16:54
@bwateratmsft bwateratmsft removed their assignment Feb 10, 2026
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.

openjdk image is deprecated

3 participants