mirror of
https://github.com/containers/podman.git
synced 2025-09-19 12:56:57 +08:00
Add RUN with priv'd command build test
Update build test to include test for RUN with a priv'd command. Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
This commit is contained in:
@ -196,10 +196,22 @@ echo ########################################################
|
|||||||
echo test "build with preprocessor"
|
echo test "build with preprocessor"
|
||||||
echo ########################################################
|
echo ########################################################
|
||||||
|
|
||||||
target=alpine-image
|
TARGET=alpine-image
|
||||||
podman build -q -t ${TARGET} -f Decomposed.in $HOME/test/build/preprocess
|
podman build -q -t ${TARGET} -f Decomposed.in $HOME/test/build/preprocess
|
||||||
buildah --debug=false images
|
buildah --debug=false images
|
||||||
CID=$(buildah from $TARGET)
|
CID=$(buildah from $TARGET)
|
||||||
buildah rm $CID
|
buildah rm $CID
|
||||||
podman rmi $(buildah --debug=false images -q)
|
podman rmi $(buildah --debug=false images -q)
|
||||||
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
|
||||||
|
Reference in New Issue
Block a user