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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Wed Apr 28 16:11:25 UTC 2021


osmith has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/45/23945/1

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: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210428/ed3384b6/attachment.htm>


More information about the gerrit-log mailing list