build: change default to use podman

With '# make image-cephcsi GOARCH=amd64'
On Fedora observed errors like:

 ---> Running in 3e2dbf48ebc6
OCI runtime create failed: this version of runc doesn't work on cgroups
v2: unknown
make: *** [Makefile:175: image-cephcsi] Error 1

hence it is recommended to switch to podman if available.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
Prasanna Kumar Kalever 2020-08-18 16:53:51 +05:30 committed by mergify[bot]
parent 52243d0140
commit e9d5e731dc

View File

@ -14,9 +14,9 @@
.PHONY: all cephcsi check-env .PHONY: all cephcsi check-env
CONTAINER_CMD?=$(shell docker version >/dev/null 2>&1 && echo docker) CONTAINER_CMD?=$(shell podman version >/dev/null 2>&1 && echo podman)
ifeq ($(CONTAINER_CMD),) ifeq ($(CONTAINER_CMD),)
CONTAINER_CMD=$(shell podman version >/dev/null 2>&1 && echo podman) CONTAINER_CMD=$(shell docker version >/dev/null 2>&1 && echo docker)
endif endif
CPUS?=$(shell nproc --ignore=1) CPUS?=$(shell nproc --ignore=1)
CPUSET?=--cpuset-cpus=0-${CPUS} CPUSET?=--cpuset-cpus=0-${CPUS}