mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-08-23 22:26:49 +00:00
fix: properly detect empty CONTAINER_CLI (#1554)
Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
This commit is contained in:
+3
-3
@@ -5,7 +5,7 @@
|
||||
# Auto-detect container runtime (docker or podman)
|
||||
# Only check when actually needed (not during container builds)
|
||||
CONTAINER_CLI ?= $(shell command -v docker 2>/dev/null || command -v podman 2>/dev/null)
|
||||
ifdef CONTAINER_CLI
|
||||
ifneq ($(CONTAINER_CLI),)
|
||||
CONTAINER_RUNTIME := $(notdir $(CONTAINER_CLI))
|
||||
endif
|
||||
|
||||
@@ -35,7 +35,7 @@ endef
|
||||
|
||||
# Build all images with correct architecture for kind
|
||||
images-kind:
|
||||
ifndef CONTAINER_CLI
|
||||
ifeq ($(CONTAINER_CLI),)
|
||||
$(error Neither docker nor podman found. Please install one of them.)
|
||||
endif
|
||||
@echo "Building images for kind cluster..."
|
||||
@@ -63,7 +63,7 @@ images-and-load-kind: images-kind load-images-kind
|
||||
|
||||
# Display detected settings
|
||||
show-kind-config:
|
||||
ifndef CONTAINER_CLI
|
||||
ifeq ($(CONTAINER_CLI),)
|
||||
$(error Neither docker nor podman found. Please install one of them.)
|
||||
endif
|
||||
@echo "Container runtime: $(CONTAINER_RUNTIME)"
|
||||
|
||||
Reference in New Issue
Block a user