-
Notifications
You must be signed in to change notification settings - Fork 793
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
Handle COPY --from when an argument is used #2522
Handle COPY --from when an argument is used #2522
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other then spacing on some of your tests.
tests/bud.bats
Outdated
_prefetch debian | ||
|
||
run_buildah bud --build-arg base=alpine --build-arg toolchainname=busybox --build-arg destinationpath=/tmp --pull=false --signature-policy ${TESTSDIR}/policy.json -f ${TESTSDIR}/bud/from-with-arg/Containerfile . | ||
[ "$status" -eq 0 ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix spacing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, IDK how I managed to mess that up so badly without seeing it.
aedcf13
to
49dfe84
Compare
LGTM |
tests/bud.bats
Outdated
_prefetch debian | ||
|
||
run_buildah bud --build-arg base=alpine --build-arg toolchainname=busybox --build-arg destinationpath=/tmp --pull=false --signature-policy ${TESTSDIR}/policy.json -f ${TESTSDIR}/bud/from-with-arg/Containerfile . | ||
[ "$status" -eq 0 ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary: run_buildah
already does status checking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep forgetting that, thanks for the nudge, removed/fixed.
When an argument was passed into "COPY --from" command in a Containerfile like COPY --from=${toolchainname} The argument was never resolved to the value that it had been set to. Addresses: containers#2496 It may also address containers#2404 but I've not yet tested. Signed-off-by: TomSweeneyRedHat <[email protected]>
49dfe84
to
44614d9
Compare
bors r+ |
Build succeeded:
|
When an argument was passed into "COPY --from" command in
a Containerfile like
COPY --from=${toolchainname}
The argument was never resolved to the value that it had been
set to.
Addresses: #2496
It may also address #2404 but I've not yet tested.
Signed-off-by: TomSweeneyRedHat [email protected]
What type of PR is this?
What this PR does / why we need it:
How to verify it
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?