Skip to content

buildkit proto followProgress support#824

Open
davidgamero wants to merge 2 commits intoapocas:masterfrom
davidgamero:buildkit-progress
Open

buildkit proto followProgress support#824
davidgamero wants to merge 2 commits intoapocas:masterfrom
davidgamero:buildkit-progress

Conversation

@davidgamero
Copy link

@davidgamero davidgamero commented Feb 3, 2026

expanding on the work in #766 to create a docker.followProgress that behaves like docker.model.followProgress for non-buildkit streams, but unmarshals the protobuf when buildkit logs are detected.

followed existing repo pattern for buildkit .proto definitions in /lib/proto, then adding decoding logic in a dedicated method via protoLoader.loadSync to read the definitions.

happy to upstream this into modem or a smaller helper if that is the better place to put it, or break this up into smaller PRs to make reviewing easier

tried to align with the repo philosophy on streams:

streams - dockerode does NOT break any stream, it passes them to you allowing for some stream voodoo.

resolves #795

collab credit @bosesuneha

Add docker.followProgress() method that works like docker.modem.followProgress()
but automatically decodes BuildKit v2 build logs. Works transparently with both
regular and BuildKit streams (build, pull, push, etc.).

Proto types match the official moby/buildkit control.proto schema.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to parse moby.buildkit.trace ?

2 participants