From d54028f9e380ae2a07a790cdb93b625e1f407cbd Mon Sep 17 00:00:00 2001 From: Peter Palaga Date: Wed, 12 Jun 2024 15:47:43 +0200 Subject: [PATCH] Fixup #41085 Docker-build fails to detect podman: add back detectContainerRuntime() method for backwards compatibility --- .../java/io/quarkus/deployment/util/ContainerRuntimeUtil.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/util/ContainerRuntimeUtil.java b/core/deployment/src/main/java/io/quarkus/deployment/util/ContainerRuntimeUtil.java index 97133d8b2a8996..5cf44bc7adb337 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/util/ContainerRuntimeUtil.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/util/ContainerRuntimeUtil.java @@ -43,6 +43,10 @@ private ContainerRuntimeUtil() { * @return a fully resolved {@link ContainerRuntime} indicating if Docker or Podman is available and in rootless mode or not * @throws IllegalStateException if no container runtime was found to build the image */ + public static ContainerRuntime detectContainerRuntime() { + return detectContainerRuntime(true); + } + public static ContainerRuntime detectContainerRuntime(ContainerRuntime... orderToCheckRuntimes) { return detectContainerRuntime(true, orderToCheckRuntimes); }