Skip to content

Conversation

@ndp-opendap
Copy link
Collaborator

Today Hannah and I discovered that despite various docker images installing java-11 or java-21, all of the docker images are using java 8 . This is because the Docker builds failed to use update-alternatives to set the current java version.

This PR should address this issue:

RHEL8:

    && dnf install -y java-11-openjdk-devel \
    && update-alternatives --set java java-11-openjdk

RHEL9:

    && yum install -y java-21-openjdk java-21-openjdk-devel ant \
    && update-alternatives --set java java-21-openjdk \

&& python3 --version

RUN set -e && dnf install -y make curl unzip which autoconf automake emacs vim jq \
RUN set -e \
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm confused---I don't remember seeing a PR for the hyrax-docker changes that would move from builds to el-builds, but they're renamed here; did I miss something?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, looks like that change was merged sans PR: 6d96515

Request for PRs in the future! (I thought we had pushing direct to master blocked, but I guess it's still possible to force push... even when time sensitive, I still think it would be better to have a PR that is merged without waiting for review, so that it at least goes through the CI/CD pipeline pre-merge and is more visible to the rest of us.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, looks like that change was merged sans PR: 6d96515

I think in the frenzy of working with 2 repos and 4 branches that I thought I was on a branch when I committed and pushed those changes...

@ndp-opendap ndp-opendap marked this pull request as draft January 29, 2026 20:35
@ndp-opendap ndp-opendap self-assigned this Jan 29, 2026
@ndp-opendap ndp-opendap marked this pull request as ready for review January 29, 2026 21:34
&& echo "Enabled $j_vers" \
&& java -version \

# java_sdk_11
Copy link
Contributor

Choose a reason for hiding this comment

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

non-blocking, but: while you're already updating these builds, want to appened the RUN commands on 131 and 134 and 138 into this RUN command, so that we don't save a layer with extra stuff before we run our clean all? (ditto in the ngap builds as well)

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