From cc7365b3f867023bcc22ca90ea77715aa7086747 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Fri, 21 Oct 2022 10:46:31 +0200 Subject: Stop using root in testing containers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It now creates and leverages xtesting as main user. Change-Id: I5b871ac2729a875674514aab75ae079e1bf125f5 Signed-off-by: Cédric Ollivier (cherry picked from commit b1e22e37cc436451b3519a0ef7f9704b5a86f9cc) --- docker/core/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docker/core') diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile index ac5b963d..017bd75a 100644 --- a/docker/core/Dockerfile +++ b/docker/core/Dockerfile @@ -40,7 +40,10 @@ RUN apk -U upgrade && \ printf "[database]\nconnection = 'sqlite:////var/lib/rally/database/rally.sqlite'" > /etc/rally/rally.conf && \ mkdir -p /var/lib/rally/database && rally db create && \ rm -r /src/requirements/.git /tmp/Try-a-quick-fix-vs-asynchronuous-issues.patch && \ + addgroup -g 1000 xtesting && adduser -u 1000 -G xtesting -D xtesting && \ + mkdir -p /etc/xtesting && chown -R xtesting: /etc/xtesting && \ apk del .build-deps +USER xtesting COPY logging.ini /etc/xtesting/logging.ini COPY logging.debug.ini /etc/xtesting/logging.debug.ini CMD ["run_tests", "-t", "all"] -- cgit 1.2.3-korg