Skip to content

Commit b6bd466

Browse files
crunchyheathcahoonpwork
authored andcommitted
Hlord update backport (#756)
* Backporting yum update changes to 3.5.2 * Adding back the inclusion of crunchy pg11 repo
1 parent e833b7a commit b6bd466

10 files changed

+25
-10
lines changed

rhel7/Dockerfile.pgo-apiserver.rhel7

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ ADD conf/RPM-GPG-KEY-crunchydata /
2424
ADD conf/crunchypg11.repo /etc/yum.repos.d/
2525
RUN rpm --import RPM-GPG-KEY-crunchydata
2626

27-
RUN yum -y update && yum -y install postgresql${PGVERSION} hostname && yum -y clean all
27+
RUN yum -y --enablerepo=rhel-7-server-ose-3.9-rpms --disablerepo=crunchy* update \
28+
&& yum -y install postgresql${PGVERSION} hostname \
29+
&& yum -y clean all
2830

2931
ADD bin/apiserver /usr/local/bin
3032
ADD bin/postgres-operator/runpsql.sh /usr/local/bin

rhel7/Dockerfile.pgo-backrest-repo.rhel7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ADD conf/RPM-GPG-KEY-crunchydata /
2020
ADD conf/crunchypg11.repo /etc/yum.repos.d/
2121
RUN rpm --import RPM-GPG-KEY-crunchydata
2222

23-
RUN yum -y update && \
23+
RUN yum -y --enablerepo=rhel-7-server-ose-3.9-rpms --disablerepo=crunchy* update && \
2424
yum -y install psmisc openssh-server openssh-clients crunchy-backrest-"${BACKREST_VERSION}" hostname pgocps-ng && \
2525
yum -y clean all
2626

rhel7/Dockerfile.pgo-backrest-restore.rhel7

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ ADD conf/RPM-GPG-KEY-crunchydata /
2020
ADD conf/crunchypg11.repo /etc/yum.repos.d/
2121
RUN rpm --import RPM-GPG-KEY-crunchydata
2222

23-
RUN yum -y update && yum -y install psmisc openssh-server openssh-clients crunchy-backrest-"${BACKREST_VERSION}" postgresql11-server procps-ng && yum -y clean all
23+
RUN yum -y --enablerepo=rhel-7-server-ose-3.9-rpms --disablerepo=crunchy* update \
24+
&& yum -y install psmisc openssh-server openssh-clients crunchy-backrest-"${BACKREST_VERSION}" postgresql11-server procps-ng \
25+
&& yum -y clean all
2426

2527
VOLUME ["/sshd", "/pgdata"]
2628

rhel7/Dockerfile.pgo-backrest.rhel7

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ COPY redhat/atomic/pgo_backrest/help.1 /help.1
2323
COPY redhat/atomic/pgo_backrest/help.md /help.md
2424
COPY redhat/licenses /licenses
2525

26-
RUN yum -y update && yum -y install postgresql11-server && yum -y install crunchy-backrest-"${BACKREST_VERSION}" && yum -y clean all
26+
RUN yum -y --enablerepo=rhel-7-server-ose-3.9-rpms --disablerepo=crunchy* update \
27+
&& yum -y install postgresql11-server \
28+
&& yum -y install crunchy-backrest-"${BACKREST_VERSION}" \
29+
&& yum -y clean all
2730

2831
#RUN mkdir -p /opt/cpm/bin /pgdata /backrestrepo && chown -R 26:26 /opt/cpm && chmod -R g=u /pgdata
2932
RUN mkdir -p /opt/cpm/bin /pgdata /backrestrepo && chown -R 26:26 /opt/cpm

rhel7/Dockerfile.pgo-load.rhel7

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ ADD conf/RPM-GPG-KEY-crunchydata /
2424
ADD conf/crunchypg11.repo /etc/yum.repos.d/
2525
RUN rpm --import RPM-GPG-KEY-crunchydata
2626

27-
RUN yum -y update && yum install -y \
27+
RUN yum -y --enablerepo=rhel-7-server-ose-3.9-rpms --disablerepo=crunchy* update \
28+
&& yum install -y \
2829
gettext \
2930
hostname \
3031
procps-ng \

rhel7/Dockerfile.pgo-lspvc.rhel7

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ ADD conf/crunchypg11.repo /etc/yum.repos.d/
1919
RUN rpm --import RPM-GPG-KEY-crunchydata
2020

2121

22-
RUN yum -y update && yum -y clean all
22+
RUN yum -y --enablerepo=rhel-7-server-ose-3.9-rpms --disablerepo=crunchy* update \
23+
&& yum -y clean all
2324

2425
#RUN mkdir -p /opt/cpm/bin && chown -R 26:26 /opt/cpm
2526
#RUN mkdir /pgdata && chmod -R g=u /pgdata

rhel7/Dockerfile.pgo-rmdata.rhel7

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ ADD conf/crunchypg11.repo /etc/yum.repos.d/
1919
RUN rpm --import RPM-GPG-KEY-crunchydata
2020

2121

22-
RUN yum -y update && yum -y clean all
22+
RUN yum -y --enablerepo=rhel-7-server-ose-3.9-rpms --disablerepo=crunchy* update \
23+
&& yum -y clean all
2324

2425
RUN mkdir -p /opt/cpm/bin
2526
ADD bin/pgo-rmdata/ /opt/cpm/bin

rhel7/Dockerfile.pgo-scheduler.rhel7

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ COPY redhat/atomic/pgo_scheduler/help.1 /help.1
1616
COPY redhat/atomic/pgo_scheduler/help.md /help.md
1717
COPY redhat/licenses /licenses
1818

19-
RUN yum -y update && yum clean all -y
19+
RUN yum -y --enablerepo=rhel-7-server-ose-3.9-rpms --disablerepo=crunchy* update \
20+
&& yum clean all -y
2021

2122
RUN mkdir -p /opt/cpm/bin /opt/cpm/conf /pgo-config \
2223
&& chown -R 2:2 /opt/cpm /pgo-config

rhel7/Dockerfile.pgo-sqlrunner.rhel7

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ ADD conf/RPM-GPG-KEY-crunchydata /
2020
ADD conf/crunchypg11.repo /etc/yum.repos.d/
2121
RUN rpm --import RPM-GPG-KEY-crunchydata
2222

23-
RUN yum -y update && yum -y install postgresql${PGVERSION} && yum -y clean all
23+
RUN yum -y --enablerepo=rhel-7-server-ose-3.9-rpms --disablerepo=crunchy* update \
24+
&& yum -y install postgresql${PGVERSION} \
25+
&& yum -y clean all
2426

2527
RUN mkdir -p /opt/cpm/bin /opt/cpm/conf /pgconf \
2628
&& chown -R 26:26 /opt/cpm /pgconf

rhel7/Dockerfile.postgres-operator.rhel7

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ ADD conf/RPM-GPG-KEY-crunchydata /
2424
ADD conf/crunchypg11.repo /etc/yum.repos.d/
2525
RUN rpm --import RPM-GPG-KEY-crunchydata
2626

27-
RUN yum -y update && yum -y install postgresql${PGVERSION} && yum -y clean all
27+
RUN yum -y --enablerepo=rhel-7-server-ose-3.9-rpms --disablerepo=crunchy* update \
28+
&& yum -y install postgresql${PGVERSION} \
29+
&& yum -y clean all
2830

2931
ADD bin/postgres-operator /usr/local/bin
3032

0 commit comments

Comments
 (0)