chore: add python docker-* targets

This allow testing in a similar context to the github CI.
This commit is contained in:
jo 2022-08-16 13:22:09 +02:00 committed by Kyle Robbertze
parent e6945a0e45
commit 3ea085d351
3 changed files with 18 additions and 0 deletions

View file

@ -74,3 +74,19 @@ install: $(VENV)
.PHONY: .clean
.clean:
rm -Rf $(VENV)
DISTRO ?= bullseye
DOCKER_RUN = docker run -it --rm \
--user $$(id -u):$$(id -g) \
--env HOME=/src/.docker/$(DISTRO) \
--volume $$(pwd)/..:/src \
--workdir /src/$(APP) \
ghcr.io/libretime/libretime-dev:$(DISTRO)
docker-dev:
$(MAKE) clean
$(DOCKER_RUN) bash
docker-test:
$(MAKE) clean
$(DOCKER_RUN) make test