summaryrefslogtreecommitdiff
path: root/pkg/domain/infra
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2021-09-21 07:52:22 -0500
committerBrent Baude <bbaude@redhat.com>2021-09-23 09:49:57 -0500
commit2df0685cbee560cde3ddaffae87b036d9882d7ea (patch)
tree61557201c072bcf14ea3c92c9ccf465eb17b98fc /pkg/domain/infra
parent6b8371b1a3a7364d0527d5d87a8aa9a3d1294ac9 (diff)
downloadpodman-2df0685cbee560cde3ddaffae87b036d9882d7ea.tar.gz
podman-2df0685cbee560cde3ddaffae87b036d9882d7ea.tar.bz2
podman-2df0685cbee560cde3ddaffae87b036d9882d7ea.zip
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 <bbaude@redhat.com>
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r--pkg/domain/infra/abi/play.go1
1 files changed, 1 insertions, 0 deletions
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
}