diff options
author | Oliver Smith <osmith@sysmocom.de> | 2021-04-28 17:22:01 +0200 |
---|---|---|
committer | osmith <osmith@sysmocom.de> | 2021-04-29 13:09:05 +0000 |
commit | d3359e2bce37de0ed11ca0209e6ffc16c21f85e9 (patch) | |
tree | 9688a6a8e5d0fddcf78c6e73195eb732bc74cffb | |
parent | d88311431881407ce259b090abd3b3b54597ca88 (diff) |
make: add UID as --build-arg
Allow to give the user running inside docker the same UID as the user
outside.
Change-Id: I4b3689a626c50c9ac38eca6b5449b8ec0344c3de
-rw-r--r-- | make/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/make/Makefile b/make/Makefile index d2cacf3..3b4ea81 100644 --- a/make/Makefile +++ b/make/Makefile @@ -15,6 +15,7 @@ # REGISTRY_HOST?=docker.io USERNAME?=$(USER) +UID=$(shell id -u) NAME?=$(shell basename $(CURDIR)) LIBOSMOCORE_BRANCH?=master OSMO_TTCN3_BRANCH?=master @@ -69,6 +70,7 @@ post-push: docker-build: .release docker build \ --build-arg USER=$(USERNAME) \ + --build-arg UID=$(UID) \ --build-arg REGISTRY=$(REGISTRY_HOST) \ --build-arg OSMO_TTCN3_BRANCH=$(OSMO_TTCN3_BRANCH) \ --build-arg UPSTREAM_DISTRO=$(UPSTREAM_DISTRO) \ |