Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: create venv for tests #363

Merged

Conversation

aesteve-rh
Copy link
Member

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

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
Copy link
Member Author

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

Copy link
Member

@mz-pdm mz-pdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense and if it works then OK.

@aesteve-rh aesteve-rh merged commit cd4425e into oVirt:master Dec 20, 2022
@aesteve-rh aesteve-rh deleted the aesteve/fix-pip-install-containers branch December 20, 2022 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants