summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2023-11-15 15:29:04 -0700
committerMartin L Roth <gaumless@gmail.com>2023-11-16 23:18:47 +0000
commit0bb9dcce1952dd34c4fc12d201ed10b1ed5a6f74 (patch)
treeaa833158f47115ffa6dc24387958295ae98550ec
parent794d1d7f6cb1092e52e24f132baf00d034591ea7 (diff)
downloadcoreboot-0bb9dcce1952dd34c4fc12d201ed10b1ed5a6f74.tar.gz
coreboot-0bb9dcce1952dd34c4fc12d201ed10b1ed5a6f74.tar.bz2
coreboot-0bb9dcce1952dd34c4fc12d201ed10b1ed5a6f74.zip
util/docker: Switch back to root user in jenkins-node
Leaving the user as coreboot caused the entrypoint to run as coreboot, which means we couldn't mount directories or run sshd correctly. Switching to root at the end of the file fixes this. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: Ie10e1d7ad4def0faafe3bcd580a77e23c3bfe948 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79067 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--util/docker/coreboot-jenkins-node/Dockerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/docker/coreboot-jenkins-node/Dockerfile b/util/docker/coreboot-jenkins-node/Dockerfile
index 2cd8d7881cde..f1ab4e9a9cc4 100644
--- a/util/docker/coreboot-jenkins-node/Dockerfile
+++ b/util/docker/coreboot-jenkins-node/Dockerfile
@@ -89,3 +89,4 @@ RUN echo 'export PATH=$PATH:/opt/xgcc/bin' >> /home/coreboot/.bashrc && \
echo "{{SSH_KEY}}" > /home/coreboot/.ssh/authorized_keys && \
chmod 0700 /home/coreboot/.ssh && \
chmod 0600 /home/coreboot/.ssh/authorized_keys
+USER root