Merge pull request #3372 from TomSweeneyRedHat/dev/tsweeney/testpriv

Add RUN with priv'd command build test
This commit is contained in:
OpenShift Merge Robot
2019-06-19 18:51:47 +02:00
committed by GitHub

View File

@@ -196,10 +196,22 @@ echo ########################################################
echo test "build with preprocessor"
echo ########################################################
target=alpine-image
TARGET=alpine-image
podman build -q -t ${TARGET} -f Decomposed.in $HOME/test/build/preprocess
buildah --debug=false images
CID=$(buildah from $TARGET)
buildah rm $CID
podman rmi $(buildah --debug=false images -q)
buildah --debug=false images -q
echo ########################################################
echo test "build with priv'd RUN"
echo ########################################################
TARGET=alpinepriv
podman build -q -t ${TARGET} -f $HOME/test/build/run-privd $HOME/test/build/run-privd
buildah --debug=false images
CID=$(buildah from $TARGET)
buildah rm $CID
podman rmi $(buildah --debug=false images -q)
buildah --debug=false images -q