summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-14 23:14:16 +0200
committerChristian Breunig <christian@breunig.cc>2024-09-14 23:14:19 +0200
commit928c1f505b95bb4b693b9e8eac5c73185d67515f (patch)
treeaddfb22db35c6ea49192f0e1d36c94489d09ddfe /docker
parentfd737172f1068870fe1ededbe9b2ed4a86663acd (diff)
downloadvyos-build-928c1f505b95bb4b693b9e8eac5c73185d67515f.tar.gz
vyos-build-928c1f505b95bb4b693b9e8eac5c73185d67515f.zip
Docker: T861: fix warning for UID_MIN/UID_MAC out of range
Rise upper limit for UID when working in an Active Direcotry integrated environment. This solves the warning: vyos_bld's uid 1632000007 outside of the UID_MIN 1000 and UID_MAX 60000 range.
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 40b2067d..5cc8744e 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -372,6 +372,11 @@ RUN sed "s/^%sudo.*/%sudo\tALL=(ALL) NOPASSWD:ALL/g" -i /etc/sudoers && \
RUN echo "$(opam env --root=/opt/opam --set-root)" >> /etc/skel/.bashrc && \
echo "export PATH=/opt/go/bin:\$PATH" >> /etc/skel/.bashrc
+# Rise upper limit for UID when working in an Active Direcotry integrated
+# environment. This solves the warning: vyos_bld's uid 1632000007 outside of the
+# UID_MIN 1000 and UID_MAX 60000 range.
+RUN sed -i 's/UID_MAX\t\t\t60000/UID_MAX\t\t\t2000000000/g' /etc/login.defs
+
# Cleanup
RUN rm -rf /tmp/*