Skip to content

Commit

Permalink
updated python instalation
Browse files Browse the repository at this point in the history
  • Loading branch information
sedagundogdu committed Aug 6, 2024
1 parent 8019db1 commit f3adbc1
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions test-images/almalinux-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN export CITUS_MAJOR_VER=${CITUS_MAJOR_VERSION//./} && \
curl https://raw.githubusercontent.com/citusdata/packaging/gh-pages/community/rpm.sh | bash && \
yum install -y citus${CITUS_MAJOR_VER}_${PG_MAJOR}-${CITUS_VERSION}.citus-${FANCY}.${PACKAGE_RELEASE_SUFFIX} \
hll_${PG_MAJOR}-${HLL_VERSION}.${PACKAGE_RELEASE_SUFFIX} \
topn_${PG_MAJOR}-${TOPN_VERSION}.${PACKAGE_RELEASE_SUFFIX}
topn_${PG_MAJOR}-${TOPN_VERSION}.${PACKAGE_RELEASE_SUFFIX}


ARG POSTGRES_HOME=/var/lib/pgsql
Expand All @@ -39,22 +39,18 @@ USER postgres
RUN cd ~ && initdb -D citus && echo "shared_preload_libraries = 'citus'" >> citus/postgresql.conf

USER root
# Enable EPEL repository and install python 3.8 and its dependencies
# Enable EPEL repository and install dependencies for Python 3.8
RUN yum install -y epel-release && \
yum install -y gcc make \
libcurl-devel \
openssl-devel \
bzip2-devel \
libffi-devel \
xz-devel \
python38-devel && \
curl https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz --output Python-3.8.12.tgz && \
yum install -y gcc make libcurl-devel openssl-devel bzip2-devel libffi-devel xz-devel wget tar && \
wget https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz && \
tar xvf Python-3.8.12.tgz && \
cd Python-3.8.*/ && \
cd Python-3.8.12 && \
./configure --enable-optimizations && \
make altinstall && \
python3.8 -m pip install pip-tools



COPY scripts/* ./

# Use pip-tools to compile and install requirements
Expand Down

0 comments on commit f3adbc1

Please sign in to comment.