chore: add python docker-* targets
This allow testing in a similar context to the github CI.
This commit is contained in:
parent
e6945a0e45
commit
3ea085d351
3 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue