aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2023-07-25 13:57:41 +0200
committerlaforge <laforge@osmocom.org>2023-07-25 15:21:35 +0000
commite0a1b5b454ae7425e317909722b6b5c268a022dc (patch)
tree7db660a79aad5c30611cb9aaaa10ffd0ed008cb2
parent4a9f22b864e20f20bad14eac1a1da999b75ba6b8 (diff)
osmo-uecups-master: make osmocom user avilable
Bring back the osmocom user that was removed earlier to fix a UID conflict with the build user. The osmocom user is being used after all, the TTCN-3 PGW tests use it to start commands as "osmocom" user in osmo-uecups-master. This lead to e.g. PGW_Tests.TC_createSession_ping4 failing. Rename the user instead of adding a new one, so it can write log files to the log dir as the same UID as the user that runs docker. Fixes: 94f8a8 ("osmo-uecups-master: remove useradd") Related: OS#6057 Change-Id: I2b29d7fedcf3e0a4c17bfbad16077098f94c529b
-rw-r--r--osmo-uecups-master/Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/osmo-uecups-master/Dockerfile b/osmo-uecups-master/Dockerfile
index 7f30155..793fe6b 100644
--- a/osmo-uecups-master/Dockerfile
+++ b/osmo-uecups-master/Dockerfile
@@ -34,6 +34,8 @@ VOLUME /data
COPY osmo-uecups-daemon.cfg /data/osmo-uecups-daemon.cfg
+RUN usermod -l osmocom build
+
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"]