From 93341575e709380cd26a1b024485cf3f57919281 Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Fri, 22 Nov 2024 08:23:01 +0100 Subject: [PATCH 1/2] chore: bump python to 3.9.20 on ubuntu18.04 --- ubuntu18.04/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu18.04/Dockerfile b/ubuntu18.04/Dockerfile index ea3f876..f6d0854 100644 --- a/ubuntu18.04/Dockerfile +++ b/ubuntu18.04/Dockerfile @@ -56,7 +56,7 @@ RUN apt-get update && \ WORKDIR / -ARG PYTHON_VERSION=3.9.2 +ARG PYTHON_VERSION=3.9.20 RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz \ && tar xvf Python-${PYTHON_VERSION}.tgz \ && cd Python-${PYTHON_VERSION} \ From 404822c23bb49387d8311a39691071906b02a530 Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Fri, 22 Nov 2024 08:23:16 +0100 Subject: [PATCH 2/2] fix: use original gcc-7 toolchain for OTP 24 on Ubuntu 18.04 --- Dockerfile | 2 ++ ubuntu18.04/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 268191e..32403f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,8 @@ ARG LUX_VERSION=lux-3.0 COPY get-otp.sh get-zsh.sh get-elixir.sh get-fdb.sh get-emqtt-bench.sh get-lux.sh / RUN if [ -f /opt/rh/devtoolset-10/enable ]; then source /opt/rh/devtoolset-10/enable; fi && \ + . /etc/os-release && export ID=$ID && export VERSION_ID=$VERSION_ID && \ + if expr "${OTP_VERSION}" : '24' > /dev/null && [ "${ID}" = "ubuntu" ] && [ "${VERSION_ID}" = "18.04" ]; then update-alternatives --set gcc /usr/bin/gcc-7; fi && \ which gcc && gcc --version && \ which g++ && g++ --version && \ /get-zsh.sh && \ diff --git a/ubuntu18.04/Dockerfile b/ubuntu18.04/Dockerfile index f6d0854..d795d1b 100644 --- a/ubuntu18.04/Dockerfile +++ b/ubuntu18.04/Dockerfile @@ -51,7 +51,8 @@ RUN apt-get update && \ wget \ zip \ zlib1g-dev && \ - update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 90 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 && \ + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7 --slave /usr/bin/g++ g++ /usr/bin/g++-7 --slave /usr/bin/gcov gcov /usr/bin/gcov-7 && \ + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 && \ apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR /