Skip to content

Commit

Permalink
Now it is possibel to build set minor ver of PG like 16.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hors committed Jan 24, 2025
1 parent 9e6bb7f commit 28b4e64
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion postgresql-containers/build/pgbackrest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ RUN set -ex; \
systemd \
libpq \
nss_wrapper \
percona-postgresql${PG_MAJOR}-libs \
percona-postgresql${PG_MAJOR%%.*}-libs \
libedit; \
microdnf -y clean all

Expand Down
2 changes: 1 addition & 1 deletion postgresql-containers/build/postgres-gis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ARG PG_MAJOR=14

RUN set -ex; \
yum-config-manager --enable ol9_codeready_builder ol9_developer_EPEL ol9_baseos_latest ol9_appstream; \
microdnf -y install percona-postgis33_${PG_MAJOR} percona-postgis33_${PG_MAJOR}-client
microdnf -y install percona-postgis33_${PG_MAJOR%%.*} percona-postgis33_${PG_MAJOR%%.*}-client

EXPOSE 5432

Expand Down
28 changes: 14 additions & 14 deletions postgresql-containers/build/postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,27 +87,27 @@ RUN set -ex; \
microdnf -y install \
libpq \
glibc-all-langpacks \
percona-postgresql${PG_MAJOR//.}; \
percona-postgresql${PG_MAJOR%%.*}; \
microdnf -y clean all

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

RUN set -ex; \
microdnf -y install \
--enablerepo="ol9_developer_EPEL" \
percona-pgaudit${PG_MAJOR//.} \
percona-pgaudit${PG_MAJOR//.}_set_user \
percona-pgaudit${PG_MAJOR%%.*} \
percona-pgaudit${PG_MAJOR%%.*}_set_user \
percona-pgbackrest \
percona-postgresql${PG_MAJOR//.}-contrib \
percona-postgresql${PG_MAJOR//.}-server \
percona-postgresql${PG_MAJOR//.}-libs \
percona-pg_stat_monitor${PG_MAJOR//.} \
percona-postgresql${PG_MAJOR//.}-llvmjit \
percona-wal2json${PG_MAJOR//.} \
percona-pg_repack${PG_MAJOR//.} \
percona-pgvector_${PG_MAJOR//.} \
percona-pgvector_${PG_MAJOR//.}-llvmjit \
percona-postgresql${PG_MAJOR%%.*}-contrib \
percona-postgresql${PG_MAJOR%%.*}-server \
percona-postgresql${PG_MAJOR%%.*}-libs \
percona-pg_stat_monitor${PG_MAJOR%%.*} \
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 Down Expand Up @@ -138,7 +138,7 @@ ENV PATH="${PGROOT}/bin:${PATH}"
RUN set -ex; \
mkdir -p /opt/crunchy/bin /opt/crunchy/conf /pgdata /pgwal /pgconf /backrestrepo /tablespaces; \
chown -R postgres:postgres /opt/crunchy /var/lib/pgsql \
/pgdata /pgwal /pgconf /backrestrepo /tablespaces /usr/pgsql-${PG_MAJOR//.}; \
/pgdata /pgwal /pgconf /backrestrepo /tablespaces /usr/pgsql-${PG_MAJOR%%.*}; \
chmod -R g=u /opt/crunchy /var/lib/pgsql \
/pgdata /pgwal /pgconf /backrestrepo /tablespaces

Expand Down

0 comments on commit 28b4e64

Please sign in to comment.