Skip to content

Commit

Permalink
Replace package nss_wrapper with nss_wrapper-libs
Browse files Browse the repository at this point in the history
Add PSQL_PKGS as alone variable

Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Sep 16, 2024
1 parent 5cf1905 commit a101cde
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 3 additions & 4 deletions 16/Dockerfile.c10s
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ 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 postgresql16-server postgresql16-contrib glibc-locale-source xz" && \
PSQL_PKGS=postgresql16-server postgresql16-contrib glibc-locale-source xz && \
RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs glibc-locale-source xz" && \
PSQL_PKGS="postgresql16-server postgresql16-contrib postgresql16-upgrade" && \
INSTALL_PKGS="$INSTALL_PKGS pgaudit" && \
INSTALL_PKGS="$INSTALL_PKGS procps-ng util-linux postgresql-upgrade" && \
yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS $PSQL_PKGS && \
rpm -V $INSTALL_PKGS postgresql-server-16 postgresql-contrib-16 && \
rpm -V $INSTALL_PKGS postgresql-server postgresql-contrib postgresql-upgrade && \
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 && \
Expand Down
4 changes: 2 additions & 2 deletions specs/multispec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +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{{ spec.short }}-server postgresql{{ spec.short }}-contrib glibc-locale-source xz"
check_pkgs: "postgresql-server-{{ spec.short }} postgresql-contrib-{{ spec.short }}"
pkgs: "postgresql{{ spec.short }}-server postgresql{{ spec.short }}-contrib postgresql{{ spec.short }}-upgrade"
check_pkgs: "postgresql-server postgresql-contrib postgresql-upgrade"

version:
"12":
Expand Down
6 changes: 4 additions & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,17 @@ COPY root/usr/libexec/fix-permissions /usr/libexec/fix-permissions
{{ spec.repo_enable_reason }}
{% endif %}
{% if spec.prod == "c10s" %}
RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs {{ spec.pkgs }}" && \
PSQL_PKGS={{ spec.pkgs }} && \
RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs glibc-locale-source xz" && \
PSQL_PKGS="{{ spec.pkgs }}" && \
{% else %}
RUN {{ spec.environment_setup }}
INSTALL_PKGS="rsync tar gettext bind-utils nss_wrapper-libs {{ spec.pkgs }}" && \
{% endif %}
{% if spec.version not in ["9.6", "10", "11"] %}
INSTALL_PKGS="$INSTALL_PKGS pgaudit" && \
{% if spec.prod != "c10s" %}
INSTALL_PKGS="$INSTALL_PKGS procps-ng util-linux postgresql-upgrade" && \
{% endif %}
{% endif %}
{% if spec.prod == "c10s" %}
yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS $PSQL_PKGS && \
Expand Down

0 comments on commit a101cde

Please sign in to comment.