-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Allow to push finalized layers to the registry during build #18642
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
Comments
This is interesting but also not something we are currently set up to do. c/image only provides an API to copy (“push”) completed images, not layers of unfinished images. And pushing a complete image to a registry requires choosing a tag. It would probably be possible to hack something together (choose a random long tag, hope that there is no collision; delete the tag afterwards), but that seems fairly messy. Pushing just the layers as they are built would need to be a new API in c/image/copy, only for transports that opt in (like |
Naively, it can be implemented very similarly to how I experienced very slow builds when using podman distributed cache feature. Although layers are cached |
Yeah, |
How hard would it be to implement this, as described in #18642 (comment) ? Is there public interest? If someone assists me, I can try to prepare a PR. I think the work has to be done in buildah. Ref: |
A friendly reminder that this issue had no activity for 30 days. |
@flouthoc could you help @StarpTech |
Feature request description
Hi, building an image is a synchronous task and network is slow. I'm curious if it would be possible to build and push layers to the registry simultaneously. If possible, I think this can save a lot of time because while layer 2 is built, layer 1 can be pushed already to the registry.
Suggest potential solution
The text was updated successfully, but these errors were encountered: