diff --git a/16/Dockerfile.c10s b/16/Dockerfile.c10s index 4100459f..7b0c9335 100644 --- a/16/Dockerfile.c10s +++ b/16/Dockerfile.c10s @@ -41,11 +41,12 @@ COPY root/usr/libexec/fix-permissions /usr/libexec/fix-permissions # This image must forever use UID 26 for postgres user so our volumes are # safe in the future. This should *never* change, the last test is there # to make sure of that. -RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs postgresql-server postgresql-contrib glibc-locale-source xz" && \ +RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs postgresql16-server postgresql16-contrib glibc-locale-source xz" && \ + PSQL_PKGS=postgresql16-server postgresql16-contrib glibc-locale-source xz && \ INSTALL_PKGS="$INSTALL_PKGS pgaudit" && \ INSTALL_PKGS="$INSTALL_PKGS procps-ng util-linux postgresql-upgrade" && \ - yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS && \ - rpm -V $INSTALL_PKGS && \ + yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS $PSQL_PKGS && \ + rpm -V $INSTALL_PKGS postgresql-server-16 postgresql-contrib-16 && \ postgres -V | grep -qe "$POSTGRESQL_VERSION\." && echo "Found VERSION $POSTGRESQL_VERSION" && \ yum -y clean all --enablerepo='*' && \ localedef -f UTF-8 -i en_US en_US.UTF-8 && \ diff --git a/specs/multispec.yml b/specs/multispec.yml index 659b432c..e45b97c1 100644 --- a/specs/multispec.yml +++ b/specs/multispec.yml @@ -74,7 +74,8 @@ specs: openshift_tags: "database,postgresql,postgresql{{ spec.short }},postgresql-{{ spec.short }}" redhat_component: "postgresql-{{ spec.short }}-container" img_name: "{{ spec.org }}/postgresql-{{ spec.short }}-{{ spec.prod }}" - pkgs: "postgresql-server postgresql-contrib glibc-locale-source xz" + pkgs: "postgresql{{ spec.short }}-server postgresql{{ spec.short }}-contrib glibc-locale-source xz" + check_pkgs: "postgresql-server-{{ spec.short }} postgresql-contrib-{{ spec.short }}" version: "12": diff --git a/src/Dockerfile b/src/Dockerfile index 0daebdaa..01eec376 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -57,6 +57,7 @@ COPY root/usr/libexec/fix-permissions /usr/libexec/fix-permissions {% endif %} {% if spec.prod == "c10s" %} RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs {{ spec.pkgs }}" && \ + PSQL_PKGS={{ spec.pkgs }} && \ {% else %} RUN {{ spec.environment_setup }} INSTALL_PKGS="rsync tar gettext bind-utils nss_wrapper-libs {{ spec.pkgs }}" && \ @@ -65,8 +66,13 @@ RUN {{ spec.environment_setup }} INSTALL_PKGS="$INSTALL_PKGS pgaudit" && \ INSTALL_PKGS="$INSTALL_PKGS procps-ng util-linux postgresql-upgrade" && \ {% endif %} +{% if spec.prod == "c10s" %} + yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS $PSQL_PKGS && \ + rpm -V $INSTALL_PKGS {{ spec.check_pkgs }} && \ +{% else %} yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS && \ rpm -V $INSTALL_PKGS && \ +{% endif %} postgres -V | grep -qe "$POSTGRESQL_VERSION\." && echo "Found VERSION $POSTGRESQL_VERSION" && \ {% if spec.post_install %} {{ spec.post_install }}