Skip to content

Commit

Permalink
Merge pull request #4392 from flouthoc/userns-tests
Browse files Browse the repository at this point in the history
userns: add arbitrary steps/stage to `--userns=auto` test
  • Loading branch information
openshift-merge-robot authored Nov 2, 2022
2 parents c2cf9fa + 481b3cc commit 3cfa17a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/bud.bats
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@ _EOF
cat > $contextdir/Dockerfile << _EOF
FROM alpine
RUN cat /proc/self/uid_map
RUN echo hello
FROM alpine
COPY --from=0 /tmp /tmp
RUN cat /proc/self/uid_map
RUN ls -a
_EOF

run_buildah build --userns=auto $WITH_POLICY_JSON -t source -f $contextdir/Dockerfile
Expand Down

0 comments on commit 3cfa17a

Please sign in to comment.