mirror of https://github.com/containers/podman.git
Should send the OCI runtime path not just the name to buildah
[NO TESTS NEEDED] Mainly because I have no idea how we would test this. Fixes: https://github.com/containers/podman/issues/9459 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
dbb7009e55
commit
37d1bc4298
|
|
@ -168,9 +168,7 @@ func (r *Runtime) newImageBuildCompleteEvent(idOrName string) {
|
||||||
// Build adds the runtime to the imagebuildah call
|
// Build adds the runtime to the imagebuildah call
|
||||||
func (r *Runtime) Build(ctx context.Context, options buildahDefine.BuildOptions, dockerfiles ...string) (string, reference.Canonical, error) {
|
func (r *Runtime) Build(ctx context.Context, options buildahDefine.BuildOptions, dockerfiles ...string) (string, reference.Canonical, error) {
|
||||||
if options.Runtime == "" {
|
if options.Runtime == "" {
|
||||||
// Make sure that build containers use the same runtime as Podman (see #9365).
|
options.Runtime = r.GetOCIRuntimePath()
|
||||||
conf := util.DefaultContainerConfig()
|
|
||||||
options.Runtime = conf.Engine.OCIRuntime
|
|
||||||
}
|
}
|
||||||
id, ref, err := imagebuildah.BuildDockerfiles(ctx, r.store, options, dockerfiles...)
|
id, ref, err := imagebuildah.BuildDockerfiles(ctx, r.store, options, dockerfiles...)
|
||||||
// Write event for build completion
|
// Write event for build completion
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue