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

[release-v1.15] Dockerfiles and build changes for hermetic Java builds #1287

Conversation

pierDipi
Copy link
Member

@pierDipi pierDipi commented Sep 26, 2024

To support hermetic builds for Java, we will follow the POC here: #1273.

While this currently doesn't pass the enterprise contract, I've validated that it will in the future with Konflux team here: https://redhat-internal.slack.com/archives/C04PZ7H0VA8/p1727247236771179 with the addition of KONFLUX-298.

This brings the dockerfiles and maven build changes from the POC #1273 and they will be used by pipelines introduced in openshift-knative/hack#304

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@openshift-ci openshift-ci bot requested review from aliok and lberk September 26, 2024 15:18
@pierDipi pierDipi changed the title Dockerfiles and build changes for hermetic builds [release-v1.15] Dockerfiles and build changes for hermetic Java builds Sep 26, 2024
@pierDipi
Copy link
Member Author

/test 416-test-conformance-aws-416

@pierDipi pierDipi requested a review from creydr September 30, 2024 07:03
Copy link
Member

Choose a reason for hiding this comment

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

What is the reason for not updating openshift/ci-operator/static-images/dispatcher/Dockerfile instead? Is it that we don't have the DEPS_IMAGE in prow-ci?

Copy link
Member

Choose a reason for hiding this comment

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

Also not sure if this is then detected by konflux-gen (as we need the path to this Dockerfile in the component yaml), because IIRC we get the Konflux components out of the ci-configs images section 🤔
But I probably miss something here

Copy link
Member

Choose a reason for hiding this comment

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

Also not sure if this is then detected by konflux-gen (as we need the path to this Dockerfile in the component yaml), because IIRC we get the Konflux components out of the ci-configs images section 🤔 But I probably miss something here

Ah found it: https://github.com/openshift-knative/hack/pull/304/files#diff-887f71c262ff6be15cc30b617c94ee85667e3ccd67aa71b7cbacd4470b031716R253.
You updated the konflux-gen for this...

Copy link
Member Author

@pierDipi pierDipi Sep 30, 2024

Choose a reason for hiding this comment

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

What is the reason for not updating openshift/ci-operator/static-images/dispatcher/Dockerfile instead? Is it that we don't have the DEPS_IMAGE in prow-ci?

Yes, in prow CI there isn't a way of doing "dependent builds", so we need to have separate Dockerfiles for Konflux

Copy link
Member

Choose a reason for hiding this comment

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

ah ok. Thanks for clarifying

/lgtm

Copy link
Member

@creydr creydr left a comment

Choose a reason for hiding this comment

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

Besides of one question seems LGTM.
Btw: awesome find with maven-dependency-plugin:go-offline 💪

Copy link

openshift-ci bot commented Sep 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pierDipi pierDipi merged commit a290f09 into openshift-knative:release-v1.15 Sep 30, 2024
28 of 51 checks passed
@pierDipi pierDipi deleted the dockerfiles-java-hermetic-builds branch September 30, 2024 14:56
@pierDipi
Copy link
Member Author

@creydr for main #1294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants