summaryrefslogtreecommitdiff
path: root/pkg/domain
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 13:06:53 -0500
commitd6f6767a594ad6fad9d4230cb1308251df844f25 (patch)
tree52494a283da6a7302e061bf433b73c89bb84d06b /pkg/domain
parent07274b86dc5ef634fcf96a295b5d9a6f1f22d8b8 (diff)
downloadpodman-d6f6767a594ad6fad9d4230cb1308251df844f25.tar.gz
podman-d6f6767a594ad6fad9d4230cb1308251df844f25.tar.bz2
podman-d6f6767a594ad6fad9d4230cb1308251df844f25.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')
-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 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
}