noble-amd64-hafnium: use the python in the venv
Created a virtual environment inside the docker for the
hafnium jobs.
Always use the python inside the venv.
This is so all scripts in hafnium use it.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Ia8fec35761ba8249dda8f34a9cbd6b58f14af253
diff --git a/noble-amd64-hafnium/Dockerfile b/noble-amd64-hafnium/Dockerfile
index f4e05f8..f191515 100644
--- a/noble-amd64-hafnium/Dockerfile
+++ b/noble-amd64-hafnium/Dockerfile
@@ -48,8 +48,8 @@
RUN set -ex ;\
# Install Python requirements
pip install --no-cache-dir -r /opt/requirements_python3.txt ;\
- # Set Python 3 as default
- ln -s -f /usr/bin/python3 /usr/bin/python ;\
+ # Set Python in the previously installed venv the default one to use.
+ ln -s -f /opt/venv/bin/python /usr/bin/python ;\
# Setup buildslave user for Jenkins
useradd -m -s /bin/bash buildslave ;\
echo "buildslave:$BUILDSLAVE_PASSWORD" | chpasswd ;\