Skip to content

Commit 5cf1905

Browse files
committed
Let's use suffix names for C10S
Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 4c7424b commit 5cf1905

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

16/Dockerfile.c10s

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ 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 postgresql-server postgresql-contrib glibc-locale-source xz" && \
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 && \
4546
INSTALL_PKGS="$INSTALL_PKGS pgaudit" && \
4647
INSTALL_PKGS="$INSTALL_PKGS procps-ng util-linux postgresql-upgrade" && \
47-
yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS && \
48-
rpm -V $INSTALL_PKGS && \
48+
yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS $PSQL_PKGS && \
49+
rpm -V $INSTALL_PKGS postgresql-server-16 postgresql-contrib-16 && \
4950
postgres -V | grep -qe "$POSTGRESQL_VERSION\." && echo "Found VERSION $POSTGRESQL_VERSION" && \
5051
yum -y clean all --enablerepo='*' && \
5152
localedef -f UTF-8 -i en_US en_US.UTF-8 && \

specs/multispec.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +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-server postgresql-contrib glibc-locale-source xz"
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 }}"
7879

7980
version:
8081
"12":

src/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ COPY root/usr/libexec/fix-permissions /usr/libexec/fix-permissions
5757
{% endif %}
5858
{% if spec.prod == "c10s" %}
5959
RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs {{ spec.pkgs }}" && \
60+
PSQL_PKGS={{ spec.pkgs }} && \
6061
{% else %}
6162
RUN {{ spec.environment_setup }}
6263
INSTALL_PKGS="rsync tar gettext bind-utils nss_wrapper-libs {{ spec.pkgs }}" && \
@@ -65,8 +66,13 @@ RUN {{ spec.environment_setup }}
6566
INSTALL_PKGS="$INSTALL_PKGS pgaudit" && \
6667
INSTALL_PKGS="$INSTALL_PKGS procps-ng util-linux postgresql-upgrade" && \
6768
{% endif %}
69+
{% if spec.prod == "c10s" %}
70+
yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS $PSQL_PKGS && \
71+
rpm -V $INSTALL_PKGS {{ spec.check_pkgs }} && \
72+
{% else %}
6873
yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS && \
6974
rpm -V $INSTALL_PKGS && \
75+
{% endif %}
7076
postgres -V | grep -qe "$POSTGRESQL_VERSION\." && echo "Found VERSION $POSTGRESQL_VERSION" && \
7177
{% if spec.post_install %}
7278
{{ spec.post_install }}

0 commit comments

Comments
 (0)