This is an automated email from the ASF dual-hosted git repository.
bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new c70de8f5f [mesos-build] Fix python setup in docker-build.sh.
c70de8f5f is described below
commit c70de8f5ff49d989cd439122a77cc0660ca8e8de
Author: Jason Zhou <[email protected]>
AuthorDate: Mon Jun 3 17:43:38 2024 -0400
[mesos-build] Fix python setup in docker-build.sh.
Fixes the python 3.6 install inside docker-build.sh
when the detected OS version is Ubuntu v16.04.
Review: https://reviews.apache.org/r/75020/
---
support/docker-build.sh | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/support/docker-build.sh b/support/docker-build.sh
index 3b8017eeb..4f4019001 100755
--- a/support/docker-build.sh
+++ b/support/docker-build.sh
@@ -84,11 +84,17 @@ case $OS in
append_dockerfile "RUN apt-get install -y iputils-ping"
# Install Python 3.6.
- append_dockerfile "RUN add-apt-repository -y ppa:deadsnakes/ppa &&
apt-get update && apt-get install -qy python3.6 python3.6-dev python3.6-venv"
+ append_dockerfile "RUN curl
https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tgz -o
/tmp/Python-3.6.15.tgz && \
+ cd /tmp && \
+ tar xzf Python-3.6.15.tgz && \
+ cd Python-3.6.15 && \
+ ./configure --enable-optimizations && \
+ make altinstall && \
+ rm -rf /tmp/Python-3.6.15.tgz /tmp/Python-3.6.15"
# Use update-alternatives to set python3.6 as python3.
- append_dockerfile "RUN update-alternatives --install /usr/bin/python3
python3 /usr/bin/python3.6 1"
+ append_dockerfile "RUN update-alternatives --install /usr/bin/python3
python3 /usr/local/bin/python3.6 1"
# Install pip for Python 3.6.
- append_dockerfile "RUN curl https://bootstrap.pypa.io/get-pip.py |
python3"
+ append_dockerfile "RUN curl
https://bootstrap.pypa.io/pip/3.6/get-pip.py | python3"
;;
*)
append_dockerfile "RUN apt-get install -y openjdk-7-jdk"