mirror of
https://github.com/containers/podman.git
synced 2025-10-20 20:54:45 +08:00
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:

committed by
Matthew Heon

parent
ea0e530050
commit
0d049e93a4
@ -167,9 +167,7 @@ func (r *Runtime) newImageBuildCompleteEvent(idOrName string) {
|
||||
// Build adds the runtime to the imagebuildah call
|
||||
func (r *Runtime) Build(ctx context.Context, options imagebuildah.BuildOptions, dockerfiles ...string) (string, reference.Canonical, error) {
|
||||
if options.Runtime == "" {
|
||||
// Make sure that build containers use the same runtime as Podman (see #9365).
|
||||
conf := util.DefaultContainerConfig()
|
||||
options.Runtime = conf.Engine.OCIRuntime
|
||||
options.Runtime = r.GetOCIRuntimePath()
|
||||
}
|
||||
id, ref, err := imagebuildah.BuildDockerfiles(ctx, r.store, options, dockerfiles...)
|
||||
// Write event for build completion
|
||||
|
Reference in New Issue
Block a user