Skip to content

Commit

Permalink
centos7 ol7 support removal and fixes release suffix ol-9
Browse files Browse the repository at this point in the history
  • Loading branch information
sedagundogdu committed Aug 6, 2024
1 parent 5870c4e commit 291d598
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions test-images/almalinux-9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ 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
ENV PATH=/usr/pgsql-${PG_MAJOR}/bin:${PATH}:${POSTGRES_HOME}

Expand All @@ -40,14 +39,21 @@ USER postgres
RUN cd ~ && initdb -D citus && echo "shared_preload_libraries = 'citus'" >> citus/postgresql.conf

USER root

# Install necessary development tools and Python 3.8
RUN yum install -y gcc make libcurl-devel openssl-devel bzip2-devel libffi-devel xz-devel && \
yum module enable -y python38 && \
yum install -y python38 python38-devel python38-pip

# Upgrade pip and install pip-tools
RUN python3.8 -m pip install --upgrade pip && python3.8 -m pip install pip-tools
# Install python 3.8 and its dependencies
RUN yum install -y gcc make && \
yum -y install libcurl-devel \
openssl-devel \
bzip2-devel \
libffi-devel \
xz-devel \
python38-devel \
openssl-devel &&\
curl https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz --output Python-3.8.12.tgz &&\
tar xvf Python-3.8.12.tgz &&\
cd Python-3.8.*/ && \
./configure --enable-optimizations && \
make altinstall && \
python3.8 -m pip install pip-tools

COPY scripts/* ./

Expand All @@ -59,3 +65,4 @@ USER postgres
WORKDIR ${POSTGRES_HOME}

CMD ["test_internal.sh"]

0 comments on commit 291d598

Please sign in to comment.