From d6f6767a594ad6fad9d4230cb1308251df844f25 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Tue, 21 Sep 2021 07:52:22 -0500 Subject: Set context dir for play kube build When performing an image build with play kube, we need to set the context directory so things like file copies have the correct input path. Signed-off-by: Brent Baude --- pkg/domain/infra/abi/play.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/domain') diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go index 87506f70c..b32598126 100644 --- a/pkg/domain/infra/abi/play.go +++ b/pkg/domain/infra/abi/play.go @@ -435,6 +435,7 @@ func (ic *ContainerEngine) getImageAndLabelInfo(ctx context.Context, cwd string, buildOpts.Isolation = buildahDefine.IsolationChroot buildOpts.CommonBuildOpts = commonOpts buildOpts.Output = container.Image + buildOpts.ContextDirectory = filepath.Dir(buildFile) if _, _, err := ic.Libpod.Build(ctx, *buildOpts, []string{buildFile}...); err != nil { return nil, nil, err } -- cgit v1.2.3-54-g00ecf