mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
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.
This commit is contained in:
parent
fd737172f1
commit
928c1f505b
@ -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/*
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user