feat(docker): Add stream_progress_to parameter to DockerImage#21121
Open
wavebyrd wants to merge 9436 commits intoPrefectHQ:mainfrom
Open
feat(docker): Add stream_progress_to parameter to DockerImage#21121wavebyrd wants to merge 9436 commits intoPrefectHQ:mainfrom
wavebyrd wants to merge 9436 commits intoPrefectHQ:mainfrom
Conversation
…efectHQ#20718) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
…#20716) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
…#20720) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
…20673) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…Q#20721) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
…fectHQ#20692) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Nate Nowack <nate@prefect.io>
…refectHQ#20725) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
…#20671) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…age E2E tests (PrefectHQ#20726) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
…0727) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
Co-authored-by: Pablo Cabeza <pablo@prefect.io>
…ctHQ#20730) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
…s (wave 4b) (PrefectHQ#20724) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…refectHQ#20653) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
PrefectHQ#20723) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
… link E2E tests (PrefectHQ#20737) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
…` field for programmatic resume (PrefectHQ#20741) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…ctHQ#20701) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…PrefectHQ#20743) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…opts (wave 5a) (PrefectHQ#20740) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
… (wave 5b) (PrefectHQ#20745) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…fectHQ#20744) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Nate Nowack <nate@prefect.io>
…ave 6a) (PrefectHQ#20749) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…trator` (PrefectHQ#20757) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
…Q#20763) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…#20761) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…refectHQ#21086) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Nate Nowack <nate@prefect.io>
…21085) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Alexander Streed <alexander.streed@prefect.io> Co-authored-by: alex.s <ajstreed1@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…1090) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…fectHQ#21071) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s <alex.s@prefect.io> Co-authored-by: alex.s <ajstreed1@gmail.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s@prefect.io <ajstreed1@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s <alex.s@prefect.io> Co-authored-by: alex.s <ajstreed1@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: bot_apk <apk@cognition.ai>
This allows users to stream docker build and push output to stdout
or any other TextIO stream. By default, output is suppressed, but
users can pass sys.stdout to see the build progress.
Example usage:
image = DockerImage(name="my-image", stream_progress_to=sys.stdout)
image.build() # Build output will be streamed to stdout
image.push() # Push output will be streamed to stdout
Closes PrefectHQ#18393
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
desertaxle
requested changes
Mar 15, 2026
Member
desertaxle
left a comment
There was a problem hiding this comment.
@wavebyrd please rebase this PR so that it includes only the changes described in the PR description.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stream_progress_toparameter toDockerImageclassChanges
stream_progress_to: Optional[TextIO]parameter toDockerImage.__init__build_image()which already supports streamingpush()method as wellExample usage
Test plan
stream_progress_to=sys.stdoutand verify build output is streamedstream_progress_toand verify output is suppressed (default)Closes #18393
🤖 Generated with Claude Code