diff options
author | Brent Baude <bbaude@redhat.com> | 2021-09-21 07:52:22 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2021-09-23 09:49:57 -0500 |
commit | 2df0685cbee560cde3ddaffae87b036d9882d7ea (patch) | |
tree | 61557201c072bcf14ea3c92c9ccf465eb17b98fc /pkg/domain/infra/abi | |
parent | 6b8371b1a3a7364d0527d5d87a8aa9a3d1294ac9 (diff) | |
download | podman-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/abi')
-rw-r--r-- | pkg/domain/infra/abi/play.go | 1 |
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 } |