Skip to content

Commit b83bbfd

Browse files
committed
Add support for RHEL10 for dist-gen source files.
PostgreSQL 16 is supported on RHEL10. README.md file is updated for the each version as well. Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
1 parent 9606f13 commit b83bbfd

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

manifest.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ DISTGEN_MULTI_RULES:
2929
- src: src/Dockerfile
3030
dest: Dockerfile.rhel9
3131

32+
- src: src/Dockerfile
33+
dest: Dockerfile.rhel10
34+
3235
- src: src/Dockerfile
3336
dest: Dockerfile.c9s
3437

specs/multispec.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ specs:
5252
{ yum -y module enable postgresql:{{ spec.version }} || :; } && \
5353
post_install: >-4
5454
(yum -y reinstall tzdata || yum -y update tzdata ) && \
55+
rhel10:
56+
distros:
57+
- rhel-10-x86_64
58+
s2i_base: ubi10/s2i-core
59+
org: "rhel10"
60+
prod: "rhel10"
61+
openshift_tags: "database,postgresql,postgresql{{ spec.short }},postgresql-{{ spec.short }}"
62+
redhat_component: "postgresql-{{ spec.short }}-container"
63+
img_name: "{{ spec.org }}/postgresql-{{ spec.short }}"
64+
pkgs: "postgresql{{ spec.short }}-server postgresql{{ spec.short }}-contrib"
5565
c9s:
5666
distros:
5767
- centos-stream-9-x86_64
@@ -139,3 +149,4 @@ matrix:
139149
- centos-stream-9-x86_64
140150
- fedora-40-x86_64
141151
- centos-stream-10-x86_64
152+
- rhel-10-x86_64

src/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ COPY root/usr/libexec/fix-permissions /usr/libexec/fix-permissions
5555
{% if spec.repo_enable_reason %}
5656
{{ spec.repo_enable_reason }}
5757
{% endif %}
58-
{% if spec.prod == "c10s" %}
58+
{% if spec.prod == "c10s" or spec.prod == "rhel10" %}
5959
RUN INSTALL_PKGS="rsync tar gettext-envsubst bind-utils nss_wrapper-libs glibc-locale-source xz" && \
6060
PSQL_PKGS="{{ spec.pkgs }}" && \
6161
{% elif spec.prod == "rhel9" and spec.version == "13" %} \
@@ -70,7 +70,7 @@ RUN {{ spec.environment_setup }}
7070
INSTALL_PKGS="$INSTALL_PKGS procps-ng util-linux postgresql-upgrade" && \
7171
{% endif %}
7272
{% endif %}
73-
{% if spec.prod == "c10s" %}
73+
{% if spec.prod == "c10s" or spec.prod == "rhel10" %}
7474
yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS $PSQL_PKGS && \
7575
rpm -V $INSTALL_PKGS {{ spec.check_pkgs }} && \
7676
{% else %}

src/root/usr/share/container-scripts/postgresql/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,4 @@ Subsequently, log output is redirected to the logging collector process and will
200200

201201
## Additional Resources
202202

203-
The Dockerfile and other sources related to this container image can be found at https://github.com/sclorg/postgresql-container. In this repository, the RHEL8 Dockerfile is named Dockerfile.rhel8, the RHEL9 Dockerfile is named Dockerfile.rhel9, and the Fedora Dockerfile is named Dockerfile.fedora.
203+
The Dockerfile and other sources related to this container image can be found at https://github.com/sclorg/postgresql-container. In this repository, the RHEL8 Dockerfile is named Dockerfile.rhel8, the RHEL9 Dockerfile is named Dockerfile.rhel9, the RHEL10 Dockerfile is named Dockerfile.rhel10, and the Fedora Dockerfile is named Dockerfile.fedora.

0 commit comments

Comments
 (0)