Skip to content

Commit

Permalink
K8SPG-699 fix build (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
hors authored Jan 24, 2025
1 parent 1cf3135 commit 555bba1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions postgresql-containers/build/postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ RUN set -ex; \
microdnf -y clean all

# Preserving PGVERSION out of paranoia
ENV PGROOT="/usr/pgsql-${PG_MAJOR%%.*}" PGVERSION="${PG_MAJOR%%.*}"
ARG PGVERSION="${PG_MAJOR%%.*}"
ENV PGROOT="/usr/pgsql-$PGVERSION" PGVERSION="$PGVERSION"

RUN set -ex; \
microdnf -y install \
Expand All @@ -106,8 +107,6 @@ RUN set -ex; \
percona-postgresql${PG_MAJOR%%.*}-llvmjit \
percona-wal2json${PG_MAJOR%%.*} \
percona-pg_repack${PG_MAJOR%%.*} \
percona-pgvector_${PG_MAJOR%%.*} \
percona-pgvector_${PG_MAJOR%%.*}-llvmjit \
psmisc \
rsync \
perl \
Expand All @@ -133,6 +132,15 @@ RUN set -ex; \
microdnf clean all; \
rm -rf /var/cache/dnf /var/cache/yum

RUN if [[ "${PG_MAJOR%%.*}" -ge '13' ]]; then \
microdnf -y install \
--enablerepo="ol9_developer_EPEL" \
percona-pgvector_${PG_MAJOR%%.*} \
percona-pgvector_${PG_MAJOR%%.*}-llvmjit; \
fi; \
microdnf clean all; \
rm -rf /var/cache/dnf /var/cache/yum

ENV PATH="${PGROOT}/bin:${PATH}"

RUN set -ex; \
Expand Down

0 comments on commit 555bba1

Please sign in to comment.