summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorMike RE Mallin <mremallin@gmail.com>2024-11-26 12:13:21 -0500
committerMike RE Mallin <mremallin@gmail.com>2024-11-26 12:18:37 -0500
commitd6431905009c71f6e607ae719ae288574053369b (patch)
tree9e98cdba18aa2f66d8792d25348198382145123d /docker
parentbcf6e53314cd8fb35c8c7c801056e05e00387a7d (diff)
Docker: Add the ability to override FRR UID
Signed-off-by: Mike RE Mallin <mmallin@cisco.com> Signed-off-by: Mike RE Mallin <mremallin@gmail.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/ubuntu-ci/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/ubuntu-ci/Dockerfile b/docker/ubuntu-ci/Dockerfile
index 5c4649dc32..aaad3bc172 100644
--- a/docker/ubuntu-ci/Dockerfile
+++ b/docker/ubuntu-ci/Dockerfile
@@ -84,10 +84,11 @@ RUN apt update && apt upgrade -y && \
python3 -m pip install xmltodict && \
python3 -m pip install git+https://github.com/Exa-Networks/exabgp@0659057837cd6c6351579e9f0fa47e9fb7de7311
+ARG UID=1000
RUN groupadd -r -g 92 frr && \
groupadd -r -g 85 frrvty && \
adduser --system --ingroup frr --home /home/frr \
- --gecos "FRR suite" --shell /bin/bash frr && \
+ --gecos "FRR suite" -u $UID --shell /bin/bash frr && \
usermod -a -G frrvty frr && \
useradd -d /var/run/exabgp/ -s /bin/false exabgp && \
echo 'frr ALL = NOPASSWD: ALL' | tee /etc/sudoers.d/frr && \