action #162638
closed[manual-testing] validate opensuse nginx's image
0%
Description
As a QA engineer, I would like to reach a point that we use more of our own artefacts rather than pulling images from outside.
We should validate nginx image available in registry.opensuse.org/opensuse/nginx:latest. Ideally, take notes for further automated testing and file bug reports if needed.
For a test scenario inspiration, please have a look at official docs [1] or nginx unit tests 2
[1] https://hub.docker.com/_/nginx/
[2] https://hg.nginx.org/nginx-tests/file/default
Acceptance criteria¶
1) Container can be easily started
2) Works with ipv4 and ipv6
3) Exports/publishes ports
4) Customization
Updated by mloviska 6 months ago
- Related to action #162623: test fails in podman_netavark added
Updated by rbranco 6 months ago
- Status changed from Workable to Feedback
- Assignee set to rbranco
I tested it already https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19559 and feedback in https://suse.slack.com/archives/C02AF8LALDA/p1718815661143189
Updated by rbranco 6 months ago
To make it work with IPv6:
cat >> nginx.conf <<EOF
events {
worker_connections 1024;
use epoll;
}
http {
server {
listen 80;
listen [::]:80;
location / {
root /srv/www/htdocs/;
index index.html index.htm;
}
}
}
EOF
podman run -d --name web --network podman1 -v $PWD/nginx.conf:/etc/nginx/nginx.conf -p [::]:80:80 registry.opensuse.org/opensuse/nginx
Updated by rbranco 6 months ago
- nginx image is maintained by BCI, unlike httpd: https://suse.slack.com/archives/C02AF8LALDA/p1719312099642439
- Neither image is customized to be container-native, not deviating from the respective RPM configuration.
- As a consequence of the above, neither image comes with IPv6 enabled by default.
- I find nginx easier to work with as it only needs nginx.conf mounted as a volume. httpd has a potential bug of /var/log/apache2 not being present. The only workaround is passing an empty dir as volume mounted to this directory.
Updated by ggardet_arm 6 months ago
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19575 fails on aarch64 Tumbleweed: https://openqa.opensuse.org/tests/4302142#step/podman_netavark/124
Test died: Container webserver_ctr is not running! at microos/tests/containers/podman_netavark.pm line 49.
Updated by rbranco 6 months ago
ggardet_arm wrote in #note-8:
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19575 fails on aarch64 Tumbleweed: https://openqa.opensuse.org/tests/4302142#step/podman_netavark/124
Test died: Container webserver_ctr is not running! at microos/tests/containers/podman_netavark.pm line 49.
Fixed by https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/19615