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
This commit is contained in:
Brian C. Lane 2020-03-04 17:37:55 -08:00
parent 6473143f44
commit b81a8516a0
1 changed files with 2 additions and 1 deletions

View File

@ -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