1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

Rename Dockerfile to Containerfile

This commit is contained in:
sumantro93 2024-09-17 11:49:11 +05:30 committed by Lukas Ruzicka
parent a7dbff27fa
commit 7657b8bb16

View File

@ -27,8 +27,8 @@ sub run {
assert_script_run "podman pull registry.fedoraproject.org/fedora:latest", 300; assert_script_run "podman pull registry.fedoraproject.org/fedora:latest", 300;
# run hello-world to test # run hello-world to test
validate_script_output "podman run -it registry.fedoraproject.org/fedora:latest echo Hello-World", sub { m/Hello-World/ }; validate_script_output "podman run -it registry.fedoraproject.org/fedora:latest echo Hello-World", sub { m/Hello-World/ };
# create a Dockerfile # create a Containerfile
assert_script_run 'printf \'FROM registry.fedoraproject.org/fedora:latest\nRUN /usr/bin/dnf install -y httpd\nEXPOSE 80\nCMD ["-D", "FOREGROUND"]\nENTRYPOINT ["/usr/sbin/httpd"]\n\' > Dockerfile'; assert_script_run 'printf \'FROM registry.fedoraproject.org/fedora:latest\nRUN /usr/bin/dnf install -y httpd\nEXPOSE 80\nCMD ["-D", "FOREGROUND"]\nENTRYPOINT ["/usr/sbin/httpd"]\n\' > Containerfile';
# Build an image # Build an image
assert_script_run 'podman build -t fedora-httpd $(pwd)', 180; assert_script_run 'podman build -t fedora-httpd $(pwd)', 180;
# Verify the image # Verify the image