Skip to content

Commit 4c782bd

Browse files
crunchyheathJonathan S. Katz
authored andcommitted
Update PostgreSQL repository for CentOS 7 builds
1 parent 6031725 commit 4c782bd

10 files changed

+23
-43
lines changed

centos7/Dockerfile.pgo-apiserver.centos7

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ LABEL name="pgo-apiserver" \
77
summary="Crunchy PostgreSQL Operator - Apiserver" \
88
description="Crunchy PostgreSQL Operator - Apiserver"
99

10-
ENV PGVERSION="12" PGDG_REPO="pgdg-redhat-repo-latest.noarch.rpm"
10+
ENV PGVERSION="12"
1111

1212
# PGDG PostgreSQL Repository
1313

14-
RUN rpm -Uvh https://download.postgresql.org/pub/repos/yum/${PGVERSION}/redhat/rhel-7-x86_64/${PGDG_REPO}
15-
1614
RUN yum -y install postgresql12 hostname && yum -y clean all
1715

1816
ADD bin/apiserver /usr/local/bin

centos7/Dockerfile.pgo-backrest-repo-sync.centos7

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@ LABEL name="pgo-backrest-repo-sync" \
77
summary="Crunchy PostgreSQL Operator - pgBackRest Repo Sync" \
88
description="Synchronizes the contents between two pgBackRest repositories."
99

10-
ENV PGVERSION="12" PGDG_REPO="pgdg-redhat-repo-latest.noarch.rpm" PGDG_REPO_DISABLE="pgdg*" PGDG_REPO_ENABLE="pgdg12" \
11-
BACKREST_VERSION="2.20"
12-
13-
RUN rpm -Uvh https://download.postgresql.org/pub/repos/yum/${PGVERSION}/redhat/rhel-7-x86_64/${PGDG_REPO}
10+
ENV PGVERSION="12" BACKREST_VERSION="2.20"
1411

1512
RUN yum -y install \
16-
--disablerepo="${PGDG_REPO_DISABLE}" \
17-
--enablerepo="${PGDG_REPO_ENABLE}" \
13+
--setopt=skip_missing_names_on_install=False \
1814
openssh-clients \
1915
openssh-server \
20-
pgbackrest-"${BACKREST_VERSION}" \
16+
crunchy-backrest-"${BACKREST_VERSION}" \
2117
procps-ng \
2218
psmisc \
2319
rsync \

centos7/Dockerfile.pgo-backrest-repo.centos7

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,14 @@ LABEL name="pgo-backrest-repo" \
77
summary="Crunchy PostgreSQL Operator - pgBackRest Repository" \
88
description="Crunchy PostgreSQL Operator - pgBackRest Repository"
99

10-
ENV PGVERSION="12" PGDG_REPO="pgdg-redhat-repo-latest.noarch.rpm" PGDG_REPO_DISABLE="pgdg*" PGDG_REPO_ENABLE="pgdg12"\
11-
BACKREST_VERSION="2.20"
12-
13-
# PGDG PostgreSQL Repository
14-
RUN rpm -Uvh https://download.postgresql.org/pub/repos/yum/${PGVERSION}/redhat/rhel-7-x86_64/${PGDG_REPO}
10+
ENV PGVERSION="12" BACKREST_VERSION="2.20"
1511

1612
RUN yum -y install \
17-
--disablerepo="${PGDG_REPO_DISABLE}" \
18-
--enablerepo="${PGDG_REPO_ENABLE}" \
13+
--setopt=skip_missing_names_on_install=False \
1914
hostname \
2015
openssh-clients \
2116
openssh-server \
22-
pgbackrest-"${BACKREST_VERSION}" \
17+
crunchy-backrest-"${BACKREST_VERSION}" \
2318
procps-ng \
2419
psmisc \
2520
rsync \

centos7/Dockerfile.pgo-backrest-restore.centos7

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@ LABEL name="pgo-backrest-restore" \
77
summary="Crunchy PostgreSQL Operator - pgBackRest Restore" \
88
description="Performs a restore operation for a PostgreSQL database using pgBackRest."
99

10-
ENV PGVERSION="12" PGDG_REPO="pgdg-redhat-repo-latest.noarch.rpm" PGDG_REPO_DISABLE="pgdg*" PGDG_REPO_ENABLE="pgdg12" \
11-
BACKREST_VERSION="2.20"
12-
13-
RUN rpm -Uvh https://download.postgresql.org/pub/repos/yum/${PGVERSION}/redhat/rhel-7-x86_64/${PGDG_REPO}
10+
ENV PGVERSION="12" BACKREST_VERSION="2.20"
1411

1512
RUN yum -y install \
16-
--disablerepo="${PGDG_REPO_DISABLE}" \
17-
--enablerepo="${PGDG_REPO_ENABLE}" \
13+
--setopt=skip_missing_names_on_install=False \
1814
openssh-clients \
1915
openssh-server \
20-
pgbackrest-"${BACKREST_VERSION}" \
16+
crunchy-backrest-"${BACKREST_VERSION}" \
2117
postgresql12-server \
2218
procps-ng \
2319
psmisc \

centos7/Dockerfile.pgo-backrest.centos7

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,12 @@ LABEL name="pgo-backrest" \
77
summary="Crunchy PostgreSQL Operator - pgBackRest" \
88
description="pgBackRest image that is integrated for use with Crunchy Data's PostgreSQL Operator."
99

10-
ENV PGVERSION="12" PGDG_REPO="pgdg-redhat-repo-latest.noarch.rpm" PGDG_REPO_DISABLE="pgdg*" PGDG_REPO_ENABLE="pgdg12" \
11-
BACKREST_VERSION="2.20"
12-
13-
RUN rpm -Uvh https://download.postgresql.org/pub/repos/yum/${PGVERSION}/redhat/rhel-7-x86_64/${PGDG_REPO}
10+
ENV PGVERSION="12" BACKREST_VERSION="2.20"
1411

1512
RUN yum -y install \
16-
--disablerepo="${PGDG_REPO_DISABLE}" \
17-
--enablerepo="${PGDG_REPO_ENABLE}" \
1813
--setopt=skip_missing_names_on_install=False \
1914
postgresql12-server \
20-
pgbackrest-"${BACKREST_VERSION}" \
15+
crunchy-backrest-"${BACKREST_VERSION}" \
2116
&& yum -y clean all
2217

2318
RUN mkdir -p /opt/cpm/bin /pgdata /backrestrepo && chown -R 26:26 /opt/cpm

centos7/Dockerfile.pgo-base.centos7

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ COPY redhat/licenses /licenses
1818
COPY licenses /licenses
1919

2020
RUN yum -y update && yum -y clean all
21+
22+
# Crunchy PostgreSQL repository
23+
ADD conf/RPM-GPG-KEY-crunchydata /
24+
ADD conf/crunchypg12.repo /etc/yum.repos.d/
25+
RUN rpm --import RPM-GPG-KEY-crunchydata

centos7/Dockerfile.pgo-load.centos7

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ LABEL name="pgo-load" \
77
summary="Crunchy PostgreSQL Operator - Load Data" \
88
description="Loads a CSV or JSON file into the database."
99

10-
ENV PGVERSION="12" PGDG_REPO="pgdg-redhat-repo-latest.noarch.rpm"
11-
12-
# PGDG PostgreSQL Repository
13-
RUN rpm -Uvh https://download.postgresql.org/pub/repos/yum/${PGVERSION}/redhat/rhel-7-x86_64/${PGDG_REPO}
10+
ENV PGVERSION="12"
1411

1512
RUN yum -y install epel-release \
1613
&& yum install -y \
14+
--setopt=skip_missing_names_on_install=False \
1715
gettext \
1816
hostname \
1917
nss_wrapper \

centos7/Dockerfile.pgo-scheduler.centos7

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ LABEL name="pgo-scheduler" \
99

1010
RUN yum -y install epel-release \
1111
&& yum -y install \
12+
--setopt=skip_missing_names_on_install=False \
1213
gettext \
1314
hostname \
1415
nss_wrapper \

centos7/Dockerfile.pgo-sqlrunner.centos7

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ LABEL name="pgo-sqlrunner" \
77
summary="Crunchy PostgreSQL Operator - SQL Runner" \
88
description="Crunchy PostgreSQL Operator - SQL Runner"
99

10-
ENV PGVERSION="12" PGDG_REPO="pgdg-redhat-repo-latest.noarch.rpm"
10+
ENV PGVERSION="12"
1111

1212
ENV PGROOT="/usr/pgsql-${PGVERSION}"
1313

14-
RUN rpm -Uvh https://download.postgresql.org/pub/repos/yum/${PGVERSION}/redhat/rhel-7-x86_64/${PGDG_REPO}
15-
1614
RUN yum -y install epel-release \
1715
&& yum -y install \
16+
--setopt=skip_missing_names_on_install=False \
1817
gettext \
1918
hostname \
2019
nss_wrapper \

centos7/Dockerfile.postgres-operator.centos7

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ LABEL name="postgres-operator" \
77
summary="Crunchy PostgreSQL Operator" \
88
description="Crunchy PostgreSQL Operator"
99

10-
ENV PGVERSION="12" PGDG_REPO="pgdg-redhat-repo-latest.noarch.rpm"
11-
12-
# PGDG PostgreSQL Repository
13-
RUN rpm -Uvh https://download.postgresql.org/pub/repos/yum/${PGVERSION}/redhat/rhel-7-x86_64/${PGDG_REPO}
10+
ENV PGVERSION="12"
1411

1512
RUN yum -y install hostname postgresql12 && yum -y clean all
1613

0 commit comments

Comments
 (0)