Skip to content
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

Question: How can I build an image using BuildKit and push it to the registry while maintaining the output stream? #454

Open
0xLE opened this issue Aug 19, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@0xLE
Copy link

0xLE commented Aug 19, 2024

I would like to build an image using BuildKit and push it to a registry afterwards while being able to report the progress. What's the best way to achieve this?

The example at https://github.com/fussybeaver/bollard/blob/master/examples/build_buildkit.rs does not push the image to a registry.

The example at https://github.com/fussybeaver/bollard/blob/master/examples/build_buildkit_with_cache.rs does push to a registry, but I'm unsure how to get BuildInfo and such from it.

Help would be appreciated.

@fussybeaver
Copy link
Owner

Unfortunately, the progress hook in the "driver"-based build path isn't implemented yet. There are some protobuf primitives to develop an API around it.. I'm happy if there's any interest in taking a stab at that

The legacy moby driver doesn't expose a push mechanic while building through the regular HTTP API. I'm not quite sure what the latest docker CLI does when you specify --push, so that's something to look at in the moby code.

@fussybeaver fussybeaver added help wanted Extra attention is needed question Further information is requested labels Aug 19, 2024
@fussybeaver fussybeaver added enhancement New feature or request and removed question Further information is requested labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants