From 46a98e1716caf2142830fa61a1267f7492fe342c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dulko?= Date: Wed, 15 Feb 2023 16:00:17 +0100 Subject: [PATCH] Test container: use UID instead of name Newer OpenShift version won't allow you to specify username as `USER` instruction argument. This commit changes the test container dockerfile to create the user with `--uid 100` and then use `100` as the argument instead. Depends-On: I7ed0ae76108a409bc72bc61ab7c12164e8277257 Change-Id: I7a51b3553a17c21160f76e527a61ef829610a888 --- test_container/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_container/Dockerfile b/test_container/Dockerfile index 8f4be28c..9cff22af 100644 --- a/test_container/Dockerfile +++ b/test_container/Dockerfile @@ -2,9 +2,9 @@ FROM quay.io/kuryr/alpine:3.12 ADD rootfs.tar.xz / RUN apk update && apk add iputils -RUN adduser -S kuryr +RUN adduser -S kuryr --uid 100 -USER kuryr +USER 100 WORKDIR /home/kuryr EXPOSE 8080