Skip to content

Conversation

@joe-braley
Copy link
Contributor

@joe-braley joe-braley commented Nov 5, 2025

This change will add the jaz package to Microsoft's OpenJDK container images. In addition to adding the new package, there are additional smoke tests which were added to verify the jaz installation.

  1. In the validate-image.sh, we now check to determine that a version of jaz is installed. If we are able to validate specific versions, then we can introduce that logic into this change. Though for now, ideally, we want to ensure that jaz is included with the images.
    2. Enables execution the test-image.sh script in CI. This script will create containers which will run simple java programs. One of the containers will run invoking jaz and ensures that any arguments jaz generates as defaults are accepted by java.

Note: Some files were using CRLF line endings those were changed to use LF endings.

# Redeclare ARG to make it available in this build stage
ARG INSTALLER_TAG
ARG JDK_VERSION
ARG JDK_URL="https://aka.ms/download-jdk/microsoft-jdk-${JDK_VERSION}-linux-ARCH.tar.gz"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a variable or something? (Perhaps a nicety of dockerfiles?)

Suggested change
ARG JDK_URL="https://aka.ms/download-jdk/microsoft-jdk-${JDK_VERSION}-linux-ARCH.tar.gz"
ARG JDK_URL="https://aka.ms/download-jdk/microsoft-jdk-${JDK_VERSION}-linux-$ARCH.tar.gz"

Copy link
Contributor

Choose a reason for hiding this comment

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

Noup, it is a word that gets replaced with the proper architecture. It is good as it is.

if [[ "$jaz_version_string" =~ "jaz version:" ]]; then
echo "::notice title=JAZ present ($jdkversion-$distro)::Image '${image}' has JAZ installed."
else
echo "::warning title=JAZ missing ($jdkversion-$distro)::Image '${image}' does not have JAZ installed."
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to just have a warning or should it fail? We will add jaz to all of our images correct?

Copy link
Contributor Author

@joe-braley joe-braley Nov 6, 2025

Choose a reason for hiding this comment

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

Yeah, I think that is what we want (to fail).

@Luigi96
Copy link
Contributor

Luigi96 commented Nov 6, 2025

You have some warnings and issues for JDK25

@joe-braley
Copy link
Contributor Author

joe-braley commented Nov 6, 2025

You have some warnings and issues for JDK25

Jaz team pushed a new version, and this is now resolved.

Copy link
Contributor

@jmjaffe37 jmjaffe37 left a comment

Choose a reason for hiding this comment

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

Looks good to me. I am ready to approve when all remaining comments are addressed :)

Copy link
Contributor

@jmjaffe37 jmjaffe37 left a comment

Choose a reason for hiding this comment

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

LGTM

@joe-braley joe-braley marked this pull request as ready for review November 14, 2025 19:22
@joe-braley joe-braley merged commit 1be12d7 into main Nov 17, 2025
18 checks passed
@joe-braley joe-braley deleted the joe/onboard-jaz branch November 17, 2025 19:16
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.

5 participants