Skip to content

Commit 6f86f45

Browse files
marmijodustymabe
authored andcommitted
kola/podman.go: use fedora container in podman.workflow
This test has been denylisted in FCOS due to rate limiting issues with the nginx container, causing frequent timeouts and failures. Replace the nginx container with the `fedora:latest` container from quay.io to mitigate this. Also modify the `podman run` command to start a Python HTTP server to continue testing volume mounting and port forwarding.
1 parent 7bfeb1f commit 6f86f45

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mantle/kola/tests/podman/podman.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,17 @@ func podmanWorkflow(c cluster.TestCluster) {
129129
m := c.Machines()[0]
130130

131131
// Test: Verify container can run with volume mount and port forwarding
132-
image := "docker.io/library/nginx"
133-
wwwRoot := "/usr/share/nginx/html"
132+
image := "quay.io/fedora/fedora"
133+
wwwRoot := "/var/html"
134134
var id string
135135

136136
c.Run("run", func(c cluster.TestCluster) {
137137
dir := c.MustSSH(m, `mktemp -d`)
138138
cmd := fmt.Sprintf("echo TEST PAGE > %s/index.html", string(dir))
139139
c.RunCmdSync(m, cmd)
140140

141-
cmd = fmt.Sprintf("sudo podman run -d -p 80:80 -v %s/index.html:%s/index.html:z %s", string(dir), wwwRoot, image)
141+
webServerCmd := fmt.Sprintf("sh -c 'dnf install -y python3 && python3 -m http.server -d %s 80'", wwwRoot)
142+
cmd = fmt.Sprintf("sudo podman run -d -p 80:80 -v %s/index.html:%s/index.html:z %s %s", string(dir), wwwRoot, image, webServerCmd)
142143
out := c.MustSSH(m, cmd)
143144
id = string(out)[0:64]
144145

0 commit comments

Comments
 (0)