Skip to content

Commit

Permalink
try to fixes python38
Browse files Browse the repository at this point in the history
  • Loading branch information
sedagundogdu committed Aug 5, 2024
1 parent ab96a54 commit 24f2848
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test-images/almalinux-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24f2848

Please sign in to comment.