-
Notifications
You must be signed in to change notification settings - Fork 2.8k
build: allow using cache explicitly with --squash-all using --layers
#14320
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
build: allow using cache explicitly with --squash-all using --layers
#14320
Conversation
|
@flouthoc: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
436d96d to
c2c9b87
Compare
|
LGTM but tests are not happy. |
|
LGTM once tests go green |
|
Stumbled upon a regression following PR at buildah should fix this also added early test at buildah end to prevent this in future: containers/buildah#4013 |
be60a9e to
07b7fd0
Compare
Same block contains similar lines above this is not needed as this looks redundant. [NO NEW TESTS NEEDED] [NO TESTS NEEDED] Signed-off-by: Aditya R <[email protected]>
217e598 to
204510e
Compare
|
@containers/podman-maintainers PTAL |
test/buildah-bud/apply-podman-deltas
Outdated
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.
Note: I'll open a followup PR to enable --build-context on podman-remote since change is big and not relevent to this PR and buildah vendor commit.
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.
just a nit otherwise LGTM
cmd/podman/images/build.go
Outdated
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.
typo in togather
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.
fixed.
Buildah already supports using `--layers` with `--squash` after containers/buildah#3674 if user wants to do so hence podman must honor similar configuration in `--squash-all` behaviour if user wants to using cache. PS: We cannot alter behaviour of `podman build --squash` for docker-compat reasons hence this feature can be easily supported by `--squash-all`. Closes: containers/buildah#4011 Signed-off-by: Aditya R <[email protected]>
Bump buildah to v1.26.1-0.20220524184833-5500333c2e06 Signed-off-by: Aditya R <[email protected]>
204510e to
66a56ce
Compare
|
@giuseppe @vrothberg @containers/podman-maintainers PTAL |
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, giuseppe 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 |
|
/lgtm |
Buildah already supports using
--layerswith--squashafter containers/buildah#3674if user wants to do so hence podman must honor similar configuration
in
--squash-allbehaviour if user wants to using cache.PS: We cannot alter behaviour of
podman build --squashfordocker-compat reasons hence this feature can be easily supported by
--squash-all.Closes: containers/buildah#4011
Does this PR introduce a user-facing change?