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:
parent
6473143f44
commit
b81a8516a0
3
Makefile
3
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user