diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-07-08 19:25:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-08 19:25:29 +0200 |
commit | 3fdf1a2c447ac3b26ae51e266ca4a781da30a5c1 (patch) | |
tree | 9a20aa8fdd6de71987306660035a44ef304151b0 /test/test_podman_baseline.sh | |
parent | ed3acaecbfeead3b0fef5928e47ecc9f34cd8d5b (diff) | |
parent | 19ddcf925162a6bfa8304b627c6583d645cc496b (diff) | |
download | podman-3fdf1a2c447ac3b26ae51e266ca4a781da30a5c1.tar.gz podman-3fdf1a2c447ac3b26ae51e266ca4a781da30a5c1.tar.bz2 podman-3fdf1a2c447ac3b26ae51e266ca4a781da30a5c1.zip |
Merge pull request #3377 from TomSweeneyRedHat/dev/tsweeney/gate
Add RUN priv'd test for build
Diffstat (limited to 'test/test_podman_baseline.sh')
-rwxr-xr-x | test/test_podman_baseline.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/test_podman_baseline.sh b/test/test_podman_baseline.sh index 92bc8e20c..d205f544a 100755 --- a/test/test_podman_baseline.sh +++ b/test/test_podman_baseline.sh @@ -536,6 +536,28 @@ EOF fi ######## +# Build Dockerfile for RUN with priv'd command test +######## +FILE=./Dockerfile +/bin/cat <<EOM >$FILE +FROM alpine +RUN apk add nginx +EOM +chmod +x $FILE + +######## +# Build with the Dockerfile +######## +podman build -f Dockerfile -t build-priv + +######## +# Cleanup +######## +podman rm -a -f +podman rmi -a -f +rm ./Dockerfile + +######## # Build Dockerfile for WhaleSays test ######## FILE=./Dockerfile |