-
Notifications
You must be signed in to change notification settings - Fork 785
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
Inherit arguments between stages #5845
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: onitake The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Ephemeral COPR build failed. @containers/packit-build please check. |
91f4fac
to
a972a55
Compare
804c285
to
57e9ba4
Compare
|
Signed-off-by: Gregor Riepl <[email protected]>
57e9ba4
to
d2f617d
Compare
…ve#564) Signed-off-by: Gregor Riepl <[email protected]>
5fea195
to
57b97fa
Compare
Signed-off-by: Gregor Riepl <[email protected]>
336feec
to
0fc2a96
Compare
Solving this here doesn't solve it for imagebuilder's CLI tool. I'm not sure what I think about that yet. |
@nalind It's still incomplete and doesn't seem to work how I imagined it yet anyway. |
Ah, sorry, that reference was buried somewhere in the linked issue. When I talk about "imagebuilder", I mean https://github.com/openshift/imagebuilder. The Dockerfile parsing logic mostly lives in Buildah originally didn't handle Dockerfiles at all, and when we needed to add the ability to do so, implementing a At times, this has meant that we had to make changes there in order to enable features here, but I could say that about other dependencies we have as well. |
Ah sorry, now I get what you meant. Yes, I had originally thought I could/should place all argument handling logic there. But then I realized that arguments are only properly resolved and tracked when build stages are "executed", which all happens here in the buildah source. Does that mean you would prefer that argument inheritance rules in Dockerfiles is handled by openshift/imagebuilder instead? I'm not sure if that is feasible at all, at least I think it would duplicate a lot of things. |
@onitake any update on this? |
I was struggling a bit to set up a proper test environment, so I haven't been able to debug why it's not working as expected yet. Will try to submit an update later this week. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Docker supports argument inheritance between build stages, but this feature is missing from buildah.
How to verify it
See the linked issue below for a basic example.
Which issue(s) this PR fixes:
Fixes #5762
Special notes for your reviewer:
To do:
Does this PR introduce a user-facing change?