dce2760
.PHONY: check
dce2760
2e4efc8
WORKING_CONT := python-docker-tests-w
2e4efc8
TESTS_IMAGE := python-docker-tests
2e4efc8
BASE_IMAGE := registry.fedoraproject.org/fedora:29
2e4efc8
dce2760
check:
e67a689
	ansible-playbook -i inventory-localhost -v -e artifacts=$(CURDIR) -c local ./tests.yml
2e4efc8
b1f852d
check-local:
b1f852d
	ansible-playbook -i inventory-localhost -v -e artifacts=$(CURDIR) -c local ./hydrant.yml
b1f852d
f3141ba
build: recipe.yml
f3141ba
	ansible-bender --debug build ./recipe.yml $(BASE_IMAGE) $(TESTS_IMAGE)
2e4efc8
2e4efc8
check-in-container:
f3141ba
	podman run --rm -ti \
2e4efc8
		-v $(CURDIR):/src \
1acadc7
		--net host \
f3141ba
		-e ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3 \
2e4efc8
		-w /src \
2e4efc8
		-v /var/run/docker.sock:/var/run/docker.sock \
2e4efc8
		$(TESTS_IMAGE) \
b1f852d
		make check-local