diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz+kolla@linaro.org> | 2023-03-20 17:42:33 +0100 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin.juszkiewicz+kolla@linaro.org> | 2023-03-20 17:45:08 +0100 |
| commit | ca16f7ae7da77102db2c1d533c401094479fe1ae (patch) | |
| tree | 85cc3ac44dd4930fa5e653364fa7cb42b42907a2 /docker/openstack-base/Dockerfile.j2 | |
| parent | 3d008b7f5ec2a54d004e8e9370f303ef9dc7858b (diff) | |
| download | kolla-ca16f7ae7da77102db2c1d533c401094479fe1ae.tar.gz kolla-ca16f7ae7da77102db2c1d533c401094479fe1ae.zip | |
docker: use python3-venv to create virtual env
Debian 'bookworm' does not like when someone installs Python packages
into system directories. So instead of installing 'virtualenv' from pip
we move to use 'python3 -m venv' which we install from distribution
repositories (on Debian/Ubuntu as EL9 has it in base 'python3').
Change-Id: I7092b561d81c362ca24f84a3d753e777e5625ab3
Diffstat (limited to 'docker/openstack-base/Dockerfile.j2')
| -rw-r--r-- | docker/openstack-base/Dockerfile.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/openstack-base/Dockerfile.j2 b/docker/openstack-base/Dockerfile.j2 index a89978950..f157d8ff7 100644 --- a/docker/openstack-base/Dockerfile.j2 +++ b/docker/openstack-base/Dockerfile.j2 @@ -50,6 +50,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'libz-dev', 'pkg-config', 'python3-dev', + 'python3-venv', 'zip' ] %} @@ -191,8 +192,7 @@ RUN ln -s openstack-base-source/* /requirements \ #} && sed -i /^ovs=/d /requirements/upper-constraints.txt \ && mkdir -p /var/lib/kolla \ - && {{ macros.install_pip(['virtualenv'])}} \ - && virtualenv --system-site-packages /var/lib/kolla/venv + && python3 -m venv --system-site-packages /var/lib/kolla/venv ENV PATH /var/lib/kolla/venv/bin:$PATH |
