Skip to content

Commit a101cde

Browse files
committed
Replace package nss_wrapper with nss_wrapper-libs
Add PSQL_PKGS as alone variable Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 5cf1905 commit a101cde

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

16/Dockerfile.c10s

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ COPY root/usr/libexec/fix-permissions /usr/libexec/fix-permissions
4141
# This image must forever use UID 26 for postgres user so our volumes are
4242
# safe in the future. This should *never* change, the last test is there
4343
# to make sure of that.
44-
RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs postgresql16-server postgresql16-contrib glibc-locale-source xz" && \
45-
PSQL_PKGS=postgresql16-server postgresql16-contrib glibc-locale-source xz && \
44+
RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs glibc-locale-source xz" && \
45+
PSQL_PKGS="postgresql16-server postgresql16-contrib postgresql16-upgrade" && \
4646
INSTALL_PKGS="$INSTALL_PKGS pgaudit" && \
47-
INSTALL_PKGS="$INSTALL_PKGS procps-ng util-linux postgresql-upgrade" && \
4847
yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS $PSQL_PKGS && \
49-
rpm -V $INSTALL_PKGS postgresql-server-16 postgresql-contrib-16 && \
48+
rpm -V $INSTALL_PKGS postgresql-server postgresql-contrib postgresql-upgrade && \
5049
postgres -V | grep -qe "$POSTGRESQL_VERSION\." && echo "Found VERSION $POSTGRESQL_VERSION" && \
5150
yum -y clean all --enablerepo='*' && \
5251
localedef -f UTF-8 -i en_US en_US.UTF-8 && \

specs/multispec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ specs:
7474
openshift_tags: "database,postgresql,postgresql{{ spec.short }},postgresql-{{ spec.short }}"
7575
redhat_component: "postgresql-{{ spec.short }}-container"
7676
img_name: "{{ spec.org }}/postgresql-{{ spec.short }}-{{ spec.prod }}"
77-
pkgs: "postgresql{{ spec.short }}-server postgresql{{ spec.short }}-contrib glibc-locale-source xz"
78-
check_pkgs: "postgresql-server-{{ spec.short }} postgresql-contrib-{{ spec.short }}"
77+
pkgs: "postgresql{{ spec.short }}-server postgresql{{ spec.short }}-contrib postgresql{{ spec.short }}-upgrade"
78+
check_pkgs: "postgresql-server postgresql-contrib postgresql-upgrade"
7979

8080
version:
8181
"12":

src/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,17 @@ COPY root/usr/libexec/fix-permissions /usr/libexec/fix-permissions
5656
{{ spec.repo_enable_reason }}
5757
{% endif %}
5858
{% if spec.prod == "c10s" %}
59-
RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs {{ spec.pkgs }}" && \
60-
PSQL_PKGS={{ spec.pkgs }} && \
59+
RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs glibc-locale-source xz" && \
60+
PSQL_PKGS="{{ spec.pkgs }}" && \
6161
{% else %}
6262
RUN {{ spec.environment_setup }}
6363
INSTALL_PKGS="rsync tar gettext bind-utils nss_wrapper-libs {{ spec.pkgs }}" && \
6464
{% endif %}
6565
{% if spec.version not in ["9.6", "10", "11"] %}
6666
INSTALL_PKGS="$INSTALL_PKGS pgaudit" && \
67+
{% if spec.prod != "c10s" %}
6768
INSTALL_PKGS="$INSTALL_PKGS procps-ng util-linux postgresql-upgrade" && \
69+
{% endif %}
6870
{% endif %}
6971
{% if spec.prod == "c10s" %}
7072
yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS $PSQL_PKGS && \

0 commit comments

Comments
 (0)