oVirt / vdsm

The Virtual Desktop Server Manager
GNU General Public License v2.0
160 stars 201 forks source link

docker: create venv for tests #363

Closed aesteve-rh closed 1 year ago

aesteve-rh commented 1 year ago

In vdsm-test containers, create a new venv [1] at /venv instead of installing the required packages directly in the root environment. Installing packages in the root environment is strongly discouraged, as it can run into conflicts with the system package manager.

[1] - https://pip.pypa.io/warnings/venv

Signed-off-by: Albert Esteve aesteve@redhat.com

aesteve-rh commented 1 year ago

Example of a conflict with the system package manager: https://github.com/oVirt/vdsm/actions/runs/3731464902/jobs/6329726583