From 189ff26ca991ec680a7b841a563ec6f4a5544dfd Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Thu, 26 Sep 2024 11:21:00 +0200 Subject: [PATCH] buildworker,buildmaster: Use venv for Pip Debian 12 complains if using Pip without a virtualenv since it could break the system. Signed-off-by: Paul Spooren --- docker/buildmaster/Dockerfile | 8 ++++++-- docker/buildmaster/files/start.sh | 6 +++--- docker/buildworker/Dockerfile | 3 +++ docker/buildworker/files/start.sh | 4 ++-- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/docker/buildmaster/Dockerfile b/docker/buildmaster/Dockerfile index d8f7f79..ccaf4a9 100644 --- a/docker/buildmaster/Dockerfile +++ b/docker/buildmaster/Dockerfile @@ -46,12 +46,15 @@ RUN \ locales \ pv \ pwgen \ + python3-venv \ python3-pip \ signify-openbsd \ wget && \ apt-get clean && \ localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 +RUN python3 -m venv /opt/venv +ENV PATH="/opt/venv/bin:$PATH" RUN pip3 install -U pip RUN \ pip3 install \ @@ -63,15 +66,16 @@ RUN \ "buildbot-worker==$BUILDBOT_VERSION" \ pyOpenSSL \ service_identity + RUN \ sed -i \ 's/Welcome to buildbot/Welcome to OpenWrt buildbot/' \ - /usr/local/lib/python*/dist-packages/buildbot_www/static/scripts.js + /opt/venv/lib/python*/site-packages/buildbot_www/static/scripts.js RUN \ sed -i \ "s;\"col-sm-12\">