We already have convenient helper packages, e.g. openQA-single-instance. To provide that to more users we should feature that in a container. This should also help with #76978
- AC1: A complete openQA instance including at least one connected worker instance can be started from a one-line podman call
- In your local openQA working copy, try out to build and run containers, e.g.
podman build -t openqa-webui docker/webuiand then
podman run --rm -it openqa-webui
- Look into both openQA-single-instance as well as the bootstrap script
Looks like this isn't built on OBS yet. It doesn't even built locally, at least here I'm getting:
podman build . STEP 1/7: FROM opensuse/tumbleweed:latest … .done] All repositories have been cleaned up. --> f6d50630e4f5 STEP 3/7: EXPOSE 80 443 9526 --> 9a2f2c53e46a STEP 4/7: ENV skip_suse_specifics=1 --> 0b6b6d1e9580 STEP 5/7: ENV skip_suse_tests=1 --> e2980cf37662 STEP 6/7: COPY script/openqa-bootstrap /usr/share/openqa/script/ Error: building at STEP "COPY script/openqa-bootstrap /usr/share/openqa/script/": checking on sources under "/hdd/openqa-devel/repos/openQA/container/single-instance": copier: stat: "/script/openqa-bootstrap": no such file or directory
So I guess I can't add it to the documentation at this point. I've nevertheless just created a PR to improve our referencing right at the start of the documentation: https://github.com/os-autoinst/openQA/pull/5166
By the way, you can merge the two
ENV commands into one to avoid the extra build step.
Specifically Optionally configure SUSE-specifics and tests initialization ended up leading to a regression in existing tests. And it made me wonder if the purpose was to make the new container more generic and set it up without needles - or maybe it was only about SUSE needles?
For the "How to run openQA tests in 5 minutes" story I would expect there's nothing distribution-specific and we're assuming a user who wants to test whatever it is they need to test.
- Status changed from Feedback to In Progress
- Status changed from In Progress to Feedback
https://build.opensuse.org/package/show/devel:openQA/openQA-single-instance-container built fine so now
podman run --pull=newer --rm -it registry.opensuse.org/devel/openqa/containers/openqa-single-instance tries to spawn openQA.
I tested the solution again and it works fine for me repeatedly so I updated the documentation accordingly with