From 529b1e7ec77041bd35e69fa712b175f735bfa2b6 Mon Sep 17 00:00:00 2001 From: Tibor Vass Date: Tue, 7 May 2019 22:15:54 +0000 Subject: [PATCH] build: honor BUILDKIT_PROGRESS env config Signed-off-by: Tibor Vass (cherry picked from commit 8adcedd658eb4531372210ad0112b679f7ae9cfb) Signed-off-by: Sebastiaan van Stijn --- cli/command/image/build_buildkit.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/command/image/build_buildkit.go b/cli/command/image/build_buildkit.go index c7344d4545..6c6d06ba8a 100644 --- a/cli/command/image/build_buildkit.go +++ b/cli/command/image/build_buildkit.go @@ -215,6 +215,10 @@ func runBuildBuildKit(dockerCli command.Cli, options buildOptions) error { }) } + if v := os.Getenv("BUILDKIT_PROGRESS"); v != "" && options.progress == "auto" { + options.progress = v + } + eg.Go(func() error { defer func() { // make sure the Status ends cleanly on build errors s.Close()