-
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
stage_executor: allow images without layers #5031
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc 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 |
LGTM When a build uses "scratch" for the image and only a label is added, a layer is now added to the image rather than creating an empty image. |
If an image with no layers is a valid thing, then this is a bug in the logic that lists which images are in storage, and that's where this needs to be fixed. I'd suggest adding error context with |
@nalind SGTM but one thing which bothers me is that when a single
Yes this is which i needed to verify, checking on this. |
Well it seems, docker/buildkit allows creating |
/hold |
@flouthoc looks like you'll need to rebase. |
25ef8bc
to
1a2681f
Compare
empty_layer
is present1a2681f
to
aad193f
Compare
@nalind I have modified this PR , and using this PR to make buildah's behavior consistent with |
aad193f
to
39d82a1
Compare
@nalind @containers/buildah-maintainers PTAL original issue containers/podman#19860 is closed in a different PR, following PR brings consistency with |
`Docker` and `Buildkit` creates no layers when only `FROM scratch` is used as content for building image, buildah must do the same. Signed-off-by: Aditya R <arajan@redhat.com>
39d82a1
to
ae5f11e
Compare
LGTM |
/lgtm |
A build case where base is
scratch
and nothing else, then produce image without layer.This matches with
buildkit
anddocker
.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?