File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ include $(abspath $(PROJECT_DIR)/build/automation/init.mk)
77setup : project-config # Set up project
88 make tester-build
99
10+ container-check : # Check the container management tool - can be set with: "export DOCKER_CMD=`which podman`" or "export DOCKER_CMD=`which docker`"
11+ echo $(DOCKER_CMD )
12+
1013build : # Build lambdas
1114 for IMAGE_NAME in $$ (echo $( PROJECT_LAMBDAS_LIST) | tr " ," " \n" ); do
1215 make -s build-lambda GENERIC_IMAGE_NAME=lambda NAME=$$ IMAGE_NAME
@@ -556,3 +559,4 @@ python-run-ruff-fixes: # Auto fixes ruff warnings
556559.SILENT : docker-run-ruff \
557560 commit-date-hash-tag \
558561 performance-test-results \
562+ container-check \
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ DOCKER_LIBRARY_TOOLS_VERSION = $(shell cat $(DOCKER_LIB_IMAGE_DIR)/tools/VERSION
4444COMPOSE_HTTP_TIMEOUT := $(or $(COMPOSE_HTTP_TIMEOUT ) , 6000)
4545DOCKER_CLIENT_TIMEOUT := $(or $(DOCKER_CLIENT_TIMEOUT ) , 6000)
4646
47- DOCKER_CMD = $( shell command -v docker >/dev/null 2>&1 && echo docker || echo podman)
48- IS_PODMAN := $(shell [ "$(DOCKER_CMD ) " = " podman" ] && echo true || echo false)
47+ DOCKER_CMD := $( or $( DOCKER_CMD ) , $( shell command -v docker >/dev/null 2>&1 && echo docker || echo podman) )
48+ IS_PODMAN := $(shell [[ "$(DOCKER_CMD ) " == * podman ] ] && echo true || echo false)
4949OUTPUT_OPTION := $(if $(filter false,$(IS_PODMAN ) ) ,--output type=docker)
5050
5151# ==============================================================================
You can’t perform that action at this time.
0 commit comments