#583 Create container image to run tests suite: to allow us to install `dnf` deps
Opened by ankursinha. Modified

An example is cyipopt, which requires /usr/bin/ipopt to be installed from the repos.


This can be done using toolbx from the looks of it:

toolbox create --distro fedora --release f42 neurofedora-test-toolbox
toolbox enter
sudo dnf install <deps>
tox ..
podman stop neurofedora-test-toolbox

The tricky bit is making a list of dnf deps. We could note them in the json files too, and then get them in the script to run dnf before tox runs. Toolboxes are persistent, so if an image already exists, we can re-use it.

Another option is to make a new image for toolbx to use (but I don't see the advantage of this):

https://containertoolbx.org/doc/#from-a-containerfile

This ticket has been migrated to the forgejo instance. Please find the new ticket here
https://forge.fedoraproject.org/neuro/NeuroFedora//issues/583

Metadata