Make: allow specifying dir owner

this is useful if you need to run docker with sudo because you're not in
docker group
This commit is contained in:
boyska 2021-09-17 10:23:04 +02:00
parent a3d20b9a35
commit fd1e5df655

View file

@ -4,6 +4,7 @@ PORT := 8000
VENV := venv VENV := venv
CONFIG := dev_config.py CONFIG := dev_config.py
PY := python PY := python
OWNER := ${USER}
docker-build: docker-build:
$(DOCKERC) build \ $(DOCKERC) build \
@ -22,8 +23,8 @@ docker-build-liquidsoap:
docker-build-techrec: docker-build-techrec:
$(DOCKERC) build \ $(DOCKERC) build \
--no-cache \ --no-cache \
--build-arg=hostgid=$(shell id -g) \ --build-arg=hostgid=$(shell id -g ${OWNER}) \
--build-arg=hostuid=$(shell id -u) \ --build-arg=hostuid=$(shell id -u ${OWNER}) \
techrec techrec
docker-stop: docker-stop: