summary refs log tree commit diff stats
path: root/tests/docker/dockerfiles/debian.docker
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2024-04-18 12:10:46 +0200
committerThomas Huth <thuth@redhat.com>2024-04-25 07:03:04 +0200
commit2355d18c79e05c2b790113c95c5ccfee35fb7fcf (patch)
tree103c430eedd05e36b8addc69eb07118e846dda13 /tests/docker/dockerfiles/debian.docker
parentc723d9d16f15e4255f9bcf293e55763da21ab51f (diff)
downloadfocaccia-qemu-2355d18c79e05c2b790113c95c5ccfee35fb7fcf.tar.gz
focaccia-qemu-2355d18c79e05c2b790113c95c5ccfee35fb7fcf.zip
tests/docker/dockerfiles: Run lcitool-refresh after the lcitool update
This update adds the removing of the EXTERNALLY-MANAGED marker files
that has been added to the lcitool recently.

Quoting Daniel:
"For those who don't know, python now commonly blocks the ability to
run 'pip install' outside of a venv. This generally makes sense for
a precious installation environment. Our containers are disposable
though, so a venv has no benefit. Removing the 'EXTERNALLY-MANAGED'
allows the historical arbitrary use of 'pip' outside a venv.
lcitool just does this unconditionally given the containers are
not precious."

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240418101056.302103-4-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/docker/dockerfiles/debian.docker')
-rw-r--r--tests/docker/dockerfiles/debian.docker1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/docker/dockerfiles/debian.docker b/tests/docker/dockerfiles/debian.docker
index b5e642d5b6..5722482e4c 100644
--- a/tests/docker/dockerfiles/debian.docker
+++ b/tests/docker/dockerfiles/debian.docker
@@ -137,6 +137,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get autoclean -y && \
     sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
     dpkg-reconfigure locales && \
+    rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
     dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
     mkdir -p /usr/libexec/ccache-wrappers && \
     ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \