From 2df0685cbee560cde3ddaffae87b036d9882d7ea 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') diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go index e386c17e9..35389ec5e 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