From 24f284816001b5b84efc2a3e379a76cec5f5c78f Mon Sep 17 00:00:00 2001 From: Seda Gundogdu Date: Mon, 5 Aug 2024 19:27:49 +0300 Subject: [PATCH] try to fixes python38 --- test-images/almalinux-9/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test-images/almalinux-9/Dockerfile b/test-images/almalinux-9/Dockerfile index 17e221ff..8a7d0743 100644 --- a/test-images/almalinux-9/Dockerfile +++ b/test-images/almalinux-9/Dockerfile @@ -41,11 +41,13 @@ RUN cd ~ && initdb -D citus && echo "shared_preload_libraries = 'citus'" >> citu USER root -# Install Python 3.8 from source -RUN yum install -y gcc make libcurl-devel openssl-devel bzip2-devel libffi-devel xz-devel +# Enable the SCL repository and install Python 3.8 +RUN yum install -y gcc make libcurl-devel openssl-devel bzip2-devel libffi-devel xz-devel && \ + yum install -y centos-release-scl && \ + yum install -y rh-python38 -# Install Python 3.8 from a pre-built package (Alternative to building from source) -RUN yum install -y python38 python38-pip python38-devel +# Setup the environment to use Python 3.8 +ENV PATH="/opt/rh/rh-python38/root/usr/bin:$PATH" # Upgrade pip and install pip-tools RUN python3.8 -m pip install --upgrade pip && python3.8 -m pip install pip-tools