File tree Expand file tree Collapse file tree 10 files changed +23
-43
lines changed
Expand file tree Collapse file tree 10 files changed +23
-43
lines changed Original file line number Diff line number Diff 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-
1614RUN yum -y install postgresql12 hostname && yum -y clean all
1715
1816ADD bin/apiserver /usr/local/bin
Original file line number Diff line number Diff 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
1512RUN 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 \
Original file line number Diff line number Diff 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
1612RUN 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 \
Original file line number Diff line number Diff 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
1512RUN 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 \
Original file line number Diff line number Diff 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
1512RUN 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
2318RUN mkdir -p /opt/cpm/bin /pgdata /backrestrepo && chown -R 26:26 /opt/cpm
Original file line number Diff line number Diff line change @@ -18,3 +18,8 @@ COPY redhat/licenses /licenses
1818COPY licenses /licenses
1919
2020RUN 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
Original file line number Diff line number Diff 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
1512RUN yum -y install epel-release \
1613 && yum install -y \
14+ --setopt=skip_missing_names_on_install=False \
1715 gettext \
1816 hostname \
1917 nss_wrapper \
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ LABEL name="pgo-scheduler" \
99
1010RUN yum -y install epel-release \
1111 && yum -y install \
12+ --setopt=skip_missing_names_on_install=False \
1213 gettext \
1314 hostname \
1415 nss_wrapper \
Original file line number Diff line number Diff 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
1212ENV 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-
1614RUN yum -y install epel-release \
1715 && yum -y install \
16+ --setopt=skip_missing_names_on_install=False \
1817 gettext \
1918 hostname \
2019 nss_wrapper \
Original file line number Diff line number Diff 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
1512RUN yum -y install hostname postgresql12 && yum -y clean all
1613
You can’t perform that action at this time.
0 commit comments