Change in docker-playground[master]: make: add UID as --build-arg

osmith gerrit-no-reply at lists.osmocom.org
Thu Apr 29 13:09:05 UTC 2021


osmith has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/23945 )

Change subject: make: add UID as --build-arg
......................................................................

make: add UID as --build-arg

Allow to give the user running inside docker the same UID as the user
outside.

Change-Id: I4b3689a626c50c9ac38eca6b5449b8ec0344c3de
---
M make/Makefile
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved
  osmith: Verified



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 @@
 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) \

-- 
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/23945
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I4b3689a626c50c9ac38eca6b5449b8ec0344c3de
Gerrit-Change-Number: 23945
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210429/1d5d273f/attachment.htm>


More information about the gerrit-log mailing list