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:
parent
a3d20b9a35
commit
fd1e5df655
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue