aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Copeland <ben.copeland@linaro.org>2020-06-25 10:24:35 +0100
committerBenjamin Copeland <ben.copeland@linaro.org>2020-06-25 10:24:35 +0100
commita38e4975f9218b8d9d828260d96b64f82a56f850 (patch)
treee9871e9fbb703203a9a9f16f489817c9fde75f1c
parent22ab676d33b7686c3b771e17e2f2044b964e6690 (diff)
downloaddockerfiles-a38e4975f9218b8d9d828260d96b64f82a56f850.tar.gz
TF-M: Set Python3 as the default instead of Python2
Signed-off-by: Benjamin Copeland <ben.copeland@linaro.org> Change-Id: Ia399392297bf67a135c865cc72dfe36408ef092e
-rw-r--r--bionic-amd64-tf-m-build/Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/bionic-amd64-tf-m-build/Dockerfile b/bionic-amd64-tf-m-build/Dockerfile
index 057d963..39f4eeb 100644
--- a/bionic-amd64-tf-m-build/Dockerfile
+++ b/bionic-amd64-tf-m-build/Dockerfile
@@ -53,6 +53,8 @@ RUN set -e ;\
pip2 install --no-cache-dir -r /opt/requirements_python2.txt ;\
python3 /tmp/get-pip.py ;\
pip3 install --no-cache-dir -r /opt/requirements_python3.txt ;\
+ # Set Python 3 as default
+ ln -s -f /usr/bin/python3 /usr/bin/python ;\
# Setup buildslave user for Jenkins
useradd -m -s /bin/bash buildslave ;\
echo "buildslave:$BUILDSLAVE_PASSWORD" | chpasswd ;\