mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-04 21:43:53 +02:00
integration: test user fancy home
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
@@ -20,8 +20,13 @@ RUN touch $HOME/hello
|
||||
# testuser1 with the default home created by useradd.
|
||||
|
||||
RUN groupadd testgroup && \
|
||||
useradd --create-home --gid testgroup testuser
|
||||
useradd --create-home --gid testgroup alice \
|
||||
useradd --create-home --home john --gid testgroup bob
|
||||
|
||||
USER testuser:testgroup
|
||||
USER alice:testgroup
|
||||
|
||||
RUN touch $HOME/hello
|
||||
|
||||
USER bob:testgroup
|
||||
|
||||
RUN touch $HOME/hello
|
||||
|
||||
Reference in New Issue
Block a user