You need previously run this part “Deploy an openQA web UI container” https://asciinema.org/a/388812
The script to have the worker running is this:
$ chmod a+w data/testresults
In this section we are going to use only opensuse test suites, but if you want more add them following the example:
$ git clone git@github.com:os-autoinst/os-autoinst-distri-opensuse.git
$ ln -s os-autoinst-distri-opensuse opensuse
$ git clone https://github.com/os-autoinst/os-autoinst-needles-opensuse.git
$ mv os-autoinst-needles-opensuse/ opensuse/products/opensuse/needles
Create a key/secret pair on your webUI and replace the example ones to configure the client.conf
$ echo -e “[openqa_webui]\nkey = <key>\nsecret = <secret>” > data/conf/client.conf
Ensure that the variable volumes is set
$ volumes=”-v $(pwd)/data:/data”
Build the worker
$ docker build openQA/container/worker -t openqa_worker
Run the worker
$ docker run -d –network openQA $volumes –device=/dev/kvm –privileged –name openqa_worker openqa_worker
You can launch a test accessing to the web UI
$ docker exec -ti openqa_webui /usr/share/openqa/script/clone_job.pl –apikey 5AD3533BB586FD54 –apisecret AE0A2A27FD82D530 https://openqa.opensuse.org/tests/1620808