From 6e850d1bfda6ddd010cfad4d6a5068e6f5423d64 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 13 Jan 2025 14:03:03 +0100 Subject: [PATCH] add support for BUILDKIT_PROGRESS Signed-off-by: Nicolas De Loof --- pkg/compose/build.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/compose/build.go b/pkg/compose/build.go index 16390169b36..8a8b04d2c45 100644 --- a/pkg/compose/build.go +++ b/pkg/compose/build.go @@ -129,6 +129,9 @@ func (s *composeService) build(ctx context.Context, project *types.Project, opti if options.Quiet { options.Progress = progress.ModeQuiet } + if options.Progress == "" { + options.Progress = os.Getenv("BUILDKIT_PROGRESS") + } w, err = xprogress.NewPrinter(progressCtx, os.Stdout, progressui.DisplayMode(options.Progress), xprogress.WithDesc( fmt.Sprintf("building with %q instance using %s driver", b.Name, b.Driver),