Change in docker-playground[master]: fpga-build: Create 'build' user like in 'debian-stretch-jenkins'

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/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Dec 17 14:37:48 UTC 2020


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

Change subject: fpga-build: Create 'build' user like in 'debian-stretch-jenkins'
......................................................................

fpga-build: Create 'build' user like in 'debian-stretch-jenkins'

Change-Id: Id99167568751b19f3454831e69eacdbadaf8aee4
---
M fpga-build/Dockerfile
1 file changed, 4 insertions(+), 3 deletions(-)

Approvals:
  laforge: Looks good to me, approved; Verified



diff --git a/fpga-build/Dockerfile b/fpga-build/Dockerfile
index 620657a..8a19dfe 100644
--- a/fpga-build/Dockerfile
+++ b/fpga-build/Dockerfile
@@ -29,8 +29,9 @@
 RUN	tar -C /opt -xf /xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}-linux-x64.tar.gz && \
 	rm xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}-linux-x64.tar.gz
 
-RUN	useradd -m osmocom
-USER	osmocom
-WORKDIR	/home/osmocom
+# match the outside user
+RUN	useradd --uid=1000 build
+RUN	mkdir /build
+RUN	chown build:build /build
 
 ENV	PATH=/opt/fpga-toolchain/bin:/opt/xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}/bin:${PATH}

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

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: Id99167568751b19f3454831e69eacdbadaf8aee4
Gerrit-Change-Number: 21761
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201217/7db86907/attachment.htm>


More information about the gerrit-log mailing list