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
This commit is contained in:
parent
3acaa0062a
commit
46a98e1716
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user