mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-16 11:43:08 +00:00
Rename Dockerfile to Containerfile
This commit is contained in:
parent
a7dbff27fa
commit
7657b8bb16
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user