osmith submitted this change.
debian-bookworm-titan: chown 1000 for deps
Change the ownership of the "deps" directory to a not yet created user
with the ID 1000. This user gets created when the gerrit verifications
use the container for building. Changing the ownership of the deps
directory allows using them and updating them as needed (e.g. if the
patch in review changes a commit of one of the deps).
Chowning here once results in faster jobs, compared to if we did it
every time the gerrit verifications job ran.
Creating the user here would result in conflicts with other containers
depending on debian-bookworm-titan that may create their own user with
the same UID.
Related: osmo-ci I4bea336097e8180b19b3afa41c0b984d93c21bd1
Change-Id: Id51885d0929f4966b1a4a181b3453c06d7956b53
---
M debian-bookworm-titan/Dockerfile
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian-bookworm-titan/Dockerfile b/debian-bookworm-titan/Dockerfile
index c4af2ef..0ce6c43 100644
--- a/debian-bookworm-titan/Dockerfile
+++ b/debian-bookworm-titan/Dockerfile
@@ -71,6 +71,7 @@
apt-get clean
# Clone osmo-ttcn3-hacks and deps, invalidate cache if deps change (OS#5017)
+# chown: gerrit-verifications will potentially update the deps as UID=1000
RUN git clone https://gerrit.osmocom.org/osmo-ttcn3-hacks && \
make -j8 -C /osmo-ttcn3-hacks deps
ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ttcn3-hacks/+/refs/heads/master/deps/Makefile?format=TEXT /tmp/deps-Makefile
@@ -78,4 +79,5 @@
cd /osmo-ttcn3-hacks && \
git pull && \
make -j8 deps; \
- fi
+ fi && \
+ chown -R 1000:1000 /osmo-ttcn3-hacks/deps
To view, visit change 38227. To unsubscribe, or for help writing mail filters, visit settings.