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

show docker build output (#785) #882

Merged
merged 7 commits into from
Jul 16, 2020
Merged

show docker build output (#785) #882

merged 7 commits into from
Jul 16, 2020

Conversation

nicolecastillo
Copy link
Collaborator

Shows docker build output by default and when the --quiet flag is given to popper run it hides it.

Copy link
Collaborator

@ivotron ivotron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking great!

@@ -212,9 +212,17 @@ def _create_container(self, cid, step):
if build:
log.info(f"[{step.id}] docker build {img}:{tag} {build_ctx_path}")
if not self._config.dry_run:
self._d.images.build(

_, build_logs = self._d.images.build(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this blocks, so the output only shows until images.build() returns. If the output of the build is too big, this might cause memory issues. In order to avoid this, this code can use the low-level API as exemplified here. Very similar to what what's already here, but with a couple of tweaks.

@ivotron
Copy link
Collaborator

ivotron commented Jul 16, 2020

thanks! I made some tweaks based on what you have in this PR and pushed them to https://github.com/getpopper/popper/tree/pr/882 . Does all that make sense to you? If it does, can you please rebase that branch from this PR?

@nicolecastillo
Copy link
Collaborator Author

nice! I did the rebase and it works smoothly.

@ivotron
Copy link
Collaborator

ivotron commented Jul 16, 2020

great, thanks! can you please push the changes to this PR, so I can merge from here? otherwise your authorship is going to get lost.

@nicolecastillo
Copy link
Collaborator Author

sure 😁

@ivotron ivotron merged commit ce2302c into getpopper:master Jul 16, 2020
@ivotron
Copy link
Collaborator

ivotron commented Jul 16, 2020

thanks!

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.

2 participants