From 7c176b698e1c86228ebd08de2c248d2c2dcf90d0 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 97133d8b2a899..5cf44bc7adb33 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); }