From 61c9b3e23c2fdc4b05836bb536af74d02a67cb7c Mon Sep 17 00:00:00 2001 From: Florian du Garage Num Date: Tue, 30 Sep 2025 21:48:26 +0200 Subject: [PATCH] remove hard-coded uid 1000 --- tutorxqueue/patches/local-docker-compose-permissions-command | 2 +- tutorxqueue/templates/xqueue/build/xqueue/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorxqueue/patches/local-docker-compose-permissions-command b/tutorxqueue/patches/local-docker-compose-permissions-command index 1d147a6..23cbf24 100644 --- a/tutorxqueue/patches/local-docker-compose-permissions-command +++ b/tutorxqueue/patches/local-docker-compose-permissions-command @@ -1 +1 @@ -setowner 1000 /mounts/xqueue +setowner {{ APP_USER_ID }} /mounts/xqueue diff --git a/tutorxqueue/templates/xqueue/build/xqueue/Dockerfile b/tutorxqueue/templates/xqueue/build/xqueue/Dockerfile index c5d77e9..c10d5ec 100644 --- a/tutorxqueue/templates/xqueue/build/xqueue/Dockerfile +++ b/tutorxqueue/templates/xqueue/build/xqueue/Dockerfile @@ -21,7 +21,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ RUN ln -s /usr/bin/python3 /usr/bin/python ###### Git-clone xqueue repo ###### -ARG APP_USER_ID=1000 +ARG APP_USER_ID={{ HOST_USER_ID }} RUN useradd --home-dir /openedx --create-home --shell /bin/bash --uid ${APP_USER_ID} app USER ${APP_USER_ID}