aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2024-04-05 13:54:36 +0200
committerosmith <osmith@sysmocom.de>2024-04-05 14:28:16 +0000
commit59ca7d5f3ee8173a8077d0774b7f2add05ad8b16 (patch)
tree67e061eea2768f61c95aad2cf3ef7445e599edd9
parent2a8bd2b62139fd0dda17a78a051a7287f267f0ff (diff)
{open5gs,osmo-uecups}-latest: don't hardcode UID
Adjust open5gs-latest and osmo-uecups-latest to not hardcode a UID. This is in preparation for creating a "build" user in debian-bookworm-obs-latest, like we have it in debian-bookworm-build. Change-Id: Icaebf46487056cea745805527fdc545d9a1846cd
-rw-r--r--open5gs-latest/Dockerfile2
-rw-r--r--osmo-uecups-latest/Dockerfile2
2 files changed, 2 insertions, 2 deletions
diff --git a/open5gs-latest/Dockerfile b/open5gs-latest/Dockerfile
index c395d9c..46375e7 100644
--- a/open5gs-latest/Dockerfile
+++ b/open5gs-latest/Dockerfile
@@ -53,6 +53,6 @@ RUN apt-get update && \
# create a user
ARG username=osmocom
-RUN useradd -m --uid=1000 ${username} && \
+RUN useradd -m ${username} && \
echo "${username} ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/${username} && \
chmod 0440 /etc/sudoers.d/${username}
diff --git a/osmo-uecups-latest/Dockerfile b/osmo-uecups-latest/Dockerfile
index 9546720..1e0d68b 100644
--- a/osmo-uecups-latest/Dockerfile
+++ b/osmo-uecups-latest/Dockerfile
@@ -25,7 +25,7 @@ VOLUME /data
COPY osmo-uecups-daemon.cfg /data/osmo-uecups-daemon.cfg
-RUN useradd -m --uid=1000 osmocom
+RUN useradd -m osmocom
WORKDIR /data
CMD ["/bin/sh", "-c", "/usr/local/bin/osmo-uecups-daemon -c /data/osmo-uecups-daemon.cfg >/data/osmo-uecups-daemon.log 2>&1"]