Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OPENJDK-2686] Jlink stage 1 - BuildConfig and Imagestream for creating a builder image with the jmods rpm installed #454

Merged
merged 12 commits into from
Mar 20, 2024

Conversation

Josh-Matsuoka
Copy link
Contributor

Addresses stage 1 of the planned multi-stage jlink build

  • Adds a script and set of 3 buildconfigs under templates/jlink/jlink-builder, one each for JDK11, JDK17, and JDK21
  • These builds that these buildconfigs produce named jlink-builder-jdk-$VERSION
  • Running the script creates an ImageStream named ubi9-openjdk-$VERSION-jlink that the buildconfig will push to when the build is run
  • After this ImageStream is created the buildconfig is passed in to openshift and a build is run off of it, pushing the result to the ubi9-openjdk-$VERSION-jlink ImageStream for consumption by stage 2.

The script currently works off of a local crc instance (getting oc from crc oc-env), this can probably be generalized later if needed but for local testing it should do the trick. Requires you to be logged into the crc environment (i,e, having run oc login)

@jmtd
Copy link
Member

jmtd commented Feb 28, 2024

Runtime GHA test failures are likely unrelated to this PR and due to the issue under #455.

@jmtd
Copy link
Member

jmtd commented Feb 28, 2024

I think we should add a dependency on an OpenJDK imageStream, the problem is we don't provide any UBI9 ones yet. We provide

  • "ubi8-openjdk-8"
  • "ubi8-openjdk-11"
  • "ubi8-openjdk-17"
  • "ubi8-openjdk-21"
  • "java"

I've filed https://issues.redhat.com/browse/OPENJDK-2811 to get some added. In the meantime we should probably add a rudimentary one to this branch; I've filed https://issues.redhat.com/browse/OPENJDK-2812 for that.

@jmtd
Copy link
Member

jmtd commented Mar 20, 2024

This is awesome!

jmtd added 5 commits March 20, 2024 13:50
In particular explicit namespace references

Signed-off-by: Jonathan Dowland <[email protected]>
I think it's slightly clearer (to a human) to see the template's
parameters prior to the objects into which they are interpolated.

Signed-off-by: Jonathan Dowland <[email protected]>
@jmtd jmtd merged commit c540151 into rh-openjdk:jlink-dev Mar 20, 2024
3 of 6 checks passed
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.

2 participants