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

Support for "--plain" option to show plain build container output #765

Merged
merged 2 commits into from
Mar 17, 2020

Conversation

pchico83
Copy link
Contributor

Support to show plain build container output.
Buildkit does not show the output of "RUN" instructions by default. "--plain" is useful for debugging Dockerfile scenarios.
Ideally, we should parse the buildkit output and show the info as we prefer, but that requires a lot of work.

Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
@derek derek bot removed the no-dco label Mar 16, 2020
@okteto okteto deleted a comment from derek bot Mar 16, 2020
@codecov
Copy link

codecov bot commented Mar 16, 2020

Codecov Report

Merging #765 into master will decrease coverage by 0.03%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #765      +/-   ##
==========================================
- Coverage   30.77%   30.73%   -0.04%     
==========================================
  Files          59       59              
  Lines        4644     4650       +6     
==========================================
  Hits         1429     1429              
- Misses       3117     3123       +6     
  Partials       98       98
Impacted Files Coverage Δ
cmd/build.go 0% <0%> (ø) ⬆️
pkg/cmd/build/buildkit.go 0% <0%> (ø) ⬆️
cmd/push.go 0% <0%> (ø) ⬆️
pkg/cmd/build/build.go 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f3aad1...a727449. Read the comment docs.

cmd/build.go Outdated
@@ -64,6 +65,7 @@ func Build() *cobra.Command {
cmd.Flags().StringVarP(&tag, "tag", "t", "", "name and optionally a tag in the 'name:tag' format (it is automatically pushed)")
cmd.Flags().StringVarP(&target, "target", "", "", "set the target build stage to build")
cmd.Flags().BoolVarP(&noCache, "no-cache", "", false, "do not use cache when building the image")
cmd.Flags().BoolVarP(&plain, "plain", "", false, "show plain build container output")
Copy link
Member

Choose a reason for hiding this comment

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

I'd use the same format as buildkit: --progress=plain and --progress=tty as the default?

Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
@pchico83 pchico83 merged commit ff393d2 into master Mar 17, 2020
@pchico83 pchico83 deleted the buildkit-logs branch March 17, 2020 01:20
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.

None yet

2 participants