From 0fb9b3e582b565f6653f2696f8e3db064ec25770 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Wed, 26 Jun 2024 17:19:41 -0300 Subject: [PATCH 1/3] fix(debian10): fix get-pip script ``` 0.220 ERROR: This script does not work on Python 3.7. The minimum supported Python version is 3.8. Please use https://bootstrap.pypa.io/pip/3.7/get-pip.py instead. ``` https://github.com/emqx/emqx-builder/actions/runs/9685773741/job/26727609446#step:11:14988 --- debian10/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian10/Dockerfile b/debian10/Dockerfile index 79c44b4..691ce9e 100644 --- a/debian10/Dockerfile +++ b/debian10/Dockerfile @@ -54,7 +54,7 @@ RUN wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \ && ln -s /usr/local/python3.7.4/bin/python3.7 /usr/bin/python3 \ && ln -s /usr/local/python3.7.4/bin/python3.7 /usr/bin/python -RUN curl -k -L -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py \ +RUN curl -k -L -o /tmp/get-pip.py https://bootstrap.pypa.io/pip/3.7/get-pip.py \ && python /tmp/get-pip.py \ && python3 /tmp/get-pip.py From 9642ce5e0280dc7370f2c58796f1911a63bad690 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Thu, 27 Jun 2024 09:12:36 -0300 Subject: [PATCH 2/3] fix(debian10): update python -> 3.9.2 --- debian10/Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/debian10/Dockerfile b/debian10/Dockerfile index 691ce9e..ea08a95 100644 --- a/debian10/Dockerfile +++ b/debian10/Dockerfile @@ -42,23 +42,23 @@ RUN apt-get update && apt-get install -y \ zlib1g-dev \ && apt-get clean && rm -rf /var/lib/apt/lists/* -RUN wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \ - && tar xvf Python-3.7.4.tgz \ - && cd Python-3.7.4 \ +RUN wget https://www.python.org/ftp/python/3.9.2/Python-3.9.2.tgz \ + && tar xvf Python-3.9.2.tgz \ + && cd Python-3.9.2 \ && echo "_socket socketmodule.c" >> Modules/Setup.dist \ && echo "_ssl _ssl.c -DUSE_SSL -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -L/usr/local/ssl/lib -lssl -lcrypto" >> Modules/Setup.dist \ - && ./configure --prefix=/usr/local/python3.7.4 \ + && ./configure --prefix=/usr/local/python3.9.2 \ && make \ && make install \ && rm -rf /usr/bin/python3 /usr/bin/python \ - && ln -s /usr/local/python3.7.4/bin/python3.7 /usr/bin/python3 \ - && ln -s /usr/local/python3.7.4/bin/python3.7 /usr/bin/python + && ln -s /usr/local/python3.9.2/bin/python3.7 /usr/bin/python3 \ + && ln -s /usr/local/python3.9.2/bin/python3.7 /usr/bin/python -RUN curl -k -L -o /tmp/get-pip.py https://bootstrap.pypa.io/pip/3.7/get-pip.py \ +RUN curl -k -L -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py \ && python /tmp/get-pip.py \ && python3 /tmp/get-pip.py -ENV PATH=/usr/local/python3.7.4/bin:$PATH +ENV PATH=/usr/local/python3.9.2/bin:$PATH ADD get-git.sh get-cmake.sh / From 62cadd7c0034aa88ab242afc3b478e49153d25f3 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Thu, 27 Jun 2024 09:18:29 -0300 Subject: [PATCH 3/3] fix: python bin path Co-authored-by: Ivan Dyachkov --- debian10/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian10/Dockerfile b/debian10/Dockerfile index ea08a95..caa0417 100644 --- a/debian10/Dockerfile +++ b/debian10/Dockerfile @@ -51,8 +51,8 @@ RUN wget https://www.python.org/ftp/python/3.9.2/Python-3.9.2.tgz \ && make \ && make install \ && rm -rf /usr/bin/python3 /usr/bin/python \ - && ln -s /usr/local/python3.9.2/bin/python3.7 /usr/bin/python3 \ - && ln -s /usr/local/python3.9.2/bin/python3.7 /usr/bin/python + && ln -s /usr/local/python3.9.2/bin/python3.9 /usr/bin/python3 \ + && ln -s /usr/local/python3.9.2/bin/python3.9 /usr/bin/python RUN curl -k -L -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py \ && python /tmp/get-pip.py \