laforge has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/33921 )
Change subject: osmo-uecups-master: make osmocom user avilable ......................................................................
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 --- M osmo-uecups-master/Dockerfile 1 file changed, 23 insertions(+), 0 deletions(-)
Approvals: laforge: Looks good to me, approved pespin: Looks good to me, but someone else must approve Jenkins Builder: Verified osmith: Verified
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 @@
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"]