From b81a8516a0b6aaf272dfdcadc2f124f88e21dec6 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 4 Mar 2020 17:37:55 -0800 Subject: [PATCH] Makefile: Add the ability to use podman instead of docker Run with 'DOCKER=podman make test-in-docker' to run the tests using podman. Related: rhbz#1472622 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f7fd978c..70884d12 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ PYTHON ?= /usr/bin/python DESTDIR ?= / +DOCKER ?= docker PKGNAME = lorax VERSION = $(shell awk '/Version:/ { print $$2 }' $(PKGNAME).spec) @@ -73,7 +74,7 @@ local: @echo "The archive is in $(PKGNAME)-$(VERSION).tar.gz" test-in-docker: - sudo docker build -t welder/lorax-composer:latest -f Dockerfile.test . + sudo $(DOCKER) build -t welder/lorax-composer:latest -f Dockerfile.test . ci: check test