Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8SPG-375: Install pg_repack and postgis by default #857

Merged
merged 5 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions postgresql-containers/build/postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ RUN set -ex; \
rpm --import /etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY; \
percona-release enable ppg-${PG_MAJOR} release

COPY build/postgres/oracle-linux-ol8.repo /etc/yum.repos.d/

RUN set -ex; \
curl -Lf -o /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle https://yum.oracle.com/RPM-GPG-KEY-oracle-ol8; \
microdnf -y install \
bind-utils \
gettext \
Expand All @@ -77,6 +80,7 @@ RUN set -ex; \
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/epel*.repo; \
sed -i 's/install_langs C.utf8/install_langs all/' /etc/rpm/macros.image-language-conf; \
microdnf -y module disable llvm-toolset; \
microdnf -y module disable postgresql; \
microdnf -y install \
libpq \
llvm \
Expand Down Expand Up @@ -117,17 +121,20 @@ RUN set -ex; \
percona-postgresql${PG_MAJOR//.}-plpython* \
percona-pg_stat_monitor${PG_MAJOR//.} \
percona-postgresql${PG_MAJOR//.}-llvmjit \
percona-wal2json${PG_MAJOR//.} \
percona-pg_repack${PG_MAJOR//.} \
percona-postgis33 \
percona-postgis33-client \
psmisc \
rsync \
perl \
nss_wrapper \
tar \
bzip2 \
lz4 \
percona-wal2json${PG_MAJOR//.} \
file \
tzdata \
unzip; \
microdnf -y reinstall tzdata; \
# patroni block starts
# Provided by Percona
microdnf -y install \
Expand Down
20 changes: 20 additions & 0 deletions postgresql-containers/build/postgres/oracle-linux-ol8.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[ol8_baseos_latest]
name=Oracle Linux 8 BaseOS Latest ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol8_appstream]
name=Oracle Linux 8 Application Stream ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/appstream/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol8_codeready_builder]
name=Oracle Linux 8 CodeReady Builder ($basearch) - Unsupported
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/codeready/builder/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1