mirror of
https://github.com/containers/podman.git
synced 2025-05-31 07:27:13 +08:00
Move whale-says test to end of baseline
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com> Closes: #1346 Approved by: rhatdan
This commit is contained in:

committed by
Atomic Bot

parent
b090d953ca
commit
1ac4dbb508
@ -5,11 +5,15 @@
|
||||
# on a freshly installed machine with no images or container in
|
||||
# play. This currently needs to be run as root.
|
||||
#
|
||||
# Please leave the whale-says test as the last test in this script.
|
||||
# It makes it easier to identify if the script has finished or not.
|
||||
#
|
||||
# To run this command:
|
||||
#
|
||||
# /bin/bash -v test_podman_baseline.sh -d # Install and then deinstall Docker
|
||||
# /bin/bash -v test_podman_baseline.sh -e # Stop on error
|
||||
# /bin/bash -v test_podman_baseline.sh # Continue on error
|
||||
#
|
||||
|
||||
#######
|
||||
# See if we want to stop on errors and/or install and then remove Docker.
|
||||
@ -345,34 +349,6 @@ podman rm --all
|
||||
podman rmi --all
|
||||
rm ./Dockerfile*
|
||||
|
||||
########
|
||||
# Build Dockerfile for WhaleSays test
|
||||
########
|
||||
FILE=./Dockerfile
|
||||
/bin/cat <<EOM >$FILE
|
||||
FROM docker/whalesay:latest
|
||||
RUN apt-get -y update && apt-get install -y fortunes
|
||||
CMD /usr/games/fortune -a | cowsay
|
||||
EOM
|
||||
chmod +x $FILE
|
||||
|
||||
########
|
||||
# Build with the Dockerfile
|
||||
########
|
||||
podman build -f Dockerfile -t whale-says
|
||||
|
||||
########
|
||||
# Run the container to see what the whale says
|
||||
########
|
||||
podman run whale-says
|
||||
|
||||
########
|
||||
# Clean up Podman and /tmp
|
||||
########
|
||||
podman rm --all
|
||||
podman rmi --all
|
||||
rm ./Dockerfile*
|
||||
|
||||
########
|
||||
# Run AppArmor rootless tests
|
||||
########
|
||||
@ -446,3 +422,36 @@ EOF
|
||||
sudo -u "#1000" podman rmi --all
|
||||
rm -f $aaFile
|
||||
fi
|
||||
|
||||
########
|
||||
# Build Dockerfile for WhaleSays test
|
||||
########
|
||||
FILE=./Dockerfile
|
||||
/bin/cat <<EOM >$FILE
|
||||
FROM docker/whalesay:latest
|
||||
RUN apt-get -y update && apt-get install -y fortunes
|
||||
CMD /usr/games/fortune -a | cowsay
|
||||
EOM
|
||||
chmod +x $FILE
|
||||
|
||||
########
|
||||
# Build with the Dockerfile
|
||||
########
|
||||
podman build -f Dockerfile -t whale-says
|
||||
|
||||
########
|
||||
# Run the container to see what the whale says
|
||||
########
|
||||
podman run whale-says
|
||||
|
||||
########
|
||||
# NOTE: Please leave the whale-says as the last test
|
||||
# in this script.
|
||||
########
|
||||
|
||||
########
|
||||
# Clean up Podman and /tmp
|
||||
########
|
||||
podman rm --all
|
||||
podman rmi --all
|
||||
rm ./Dockerfile*
|
||||
|
Reference in New Issue
Block a user