Skip to content

Commit a02affd

Browse files
committed
Add support for building and testing postgresql-13 on RHEL9 host
Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent c6b749b commit a02affd

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

manifest.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ DISTGEN_MULTI_RULES="
3838
src=src/Dockerfile
3939
dest=Dockerfile.rhel8;
4040
41+
src=src/Dockerfile
42+
dest=Dockerfile.rhel9;
43+
4144
src=src/Dockerfile
4245
dest=Dockerfile.c9s;
4346

specs/multispec.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ specs:
5151
yum -y module enable postgresql:{{ spec.version }} && \
5252
post_install: >-4
5353
yum -y reinstall tzdata && \
54+
rhel9:
55+
distros:
56+
- rhel-9-x86_64
57+
s2i_base: ubi9/s2i-core
58+
org: "rhel9"
59+
prod: "rhel9"
60+
openshift_tags: "database,postgresql,postgresql{{ spec.short }},postgresql-{{ spec.short }}"
61+
redhat_component: "postgresql-{{ spec.short }}-container"
62+
img_name: "{{ spec.org }}/postgresql-{{ spec.short }}"
63+
pkgs: "postgresql-server postgresql-contrib"
64+
environment_setup: >-4
65+
yum -y install postgresql && \
66+
post_install: >-4
67+
yum -y reinstall tzdata && \
5468
c9s:
5569
distros:
5670
- centos-stream-9-x86_64
@@ -147,24 +161,28 @@ matrix:
147161
- rhel-7-x86_64
148162
- centos-7-x86_64
149163
- rhel-8-x86_64
164+
- rhel-9-x86_64
150165
- centos-stream-8-x86_64
151166
- centos-stream-9-x86_64
152167
version: "9.6"
153168
- distros:
154169
- fedora-31-x86_64
155170
- fedora-34-x86_64
171+
- rhel-9-x86_64
156172
- centos-stream-9-x86_64
157173
version: "10"
158174
- distros:
159175
- rhel-7-x86_64
160176
- rhel-8-x86_64
177+
- rhel-9-x86_64
161178
- centos-7-x86_64
162179
- fedora-34-x86_64
163180
- centos-stream-8-x86_64
164181
- centos-stream-9-x86_64
165182
version: "11"
166183
- distros:
167184
- rhel-8-x86_64
185+
- rhel-9-x86_64
168186
- fedora-34-x86_64
169187
- centos-stream-8-x86_64
170188
- centos-stream-9-x86_64

src/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ FROM {{ spec.s2i_base }}
1111
# PostgreSQL administrative account
1212

1313
ENV POSTGRESQL_VERSION={{ spec.version }} \
14-
{% if spec.prod != "rhel8" or spec.version == "10" %}
14+
{% if spec.prod != "rhel8" or spec.prod != "rhel9" or spec.version == "10" %}
1515
POSTGRESQL_PREV_VERSION={{ spec.prev_version }} \
1616
{% endif %}
1717
HOME=/var/lib/pgsql \
@@ -73,7 +73,7 @@ RUN {{ spec.environment_setup }}
7373
{% if spec.version not in ["9.6", "10", "11"] %}
7474
{% if spec.prod == 'rhel7' or spec.prod == 'centos7' %}
7575
INSTALL_PKGS="$INSTALL_PKGS rh-postgresql{{ spec.short }}-pgaudit" && \
76-
{% elif spec.prod == 'rhel8' or spec.prod == 'c9s' or spec.prod == 'c8s' %}
76+
{% elif spec.prod == 'rhel8' or spec.prod == 'rhel9' or spec.prod == 'c9s' or spec.prod == 'c8s' %}
7777
INSTALL_PKGS="$INSTALL_PKGS pgaudit" && \
7878
{% endif %}
7979
{% endif %}
@@ -95,7 +95,7 @@ ENV CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/postgresql \
9595
COPY root /
9696
COPY ./s2i/bin/ $STI_SCRIPTS_PATH
9797

98-
{% if spec.prod != "rhel8" and config.os.id != "fedora" and spec.prod != "c8s" and spec.prod != "c9s" %}
98+
{% if spec.prod != "rhel8" and spec.prod != "rhel9" and config.os.id != "fedora" and spec.prod != "c8s" and spec.prod != "c9s" %}
9999
# When bash is started non-interactively, to run a shell script, for example it
100100
# looks for this variable and source the content of this file. This will enable
101101
# the SCL for all scripts without need to do 'scl enable'.

0 commit comments

Comments
 (0)