From 19ddcf925162a6bfa8304b627c6583d645cc496b Mon Sep 17 00:00:00 2001 From: TomSweeneyRedHat Date: Wed, 19 Jun 2019 10:46:48 -0400 Subject: Add RUN priv'd test for build Podman 1.4.1 had problems with builds with a RUN command that tried to to a privliged command. This adds a gating test for that situation. Signed-off-by: TomSweeneyRedHat --- test/test_podman_baseline.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/test_podman_baseline.sh') 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 @@ -535,6 +535,28 @@ EOF rm -f $aaFile fi +######## +# Build Dockerfile for RUN with priv'd command test +######## +FILE=./Dockerfile +/bin/cat <$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 ######## -- cgit v1.2.3-54-g00ecf