Skip to content

Commit ab1bcbf

Browse files
authored
Add support for RHEL 10 and some improvements (#289)
1 parent 8f80e49 commit ab1bcbf

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

.github/workflows/Dockerfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
ARG RHEL_VERSION
2-
FROM rockylinux:${RHEL_VERSION}
2+
FROM rockylinux/rockylinux:${RHEL_VERSION:-10}
33

44
ARG RHEL_VERSION
55
ARG PG_VERSION
66
ARG PG_RMAN_VERSION
77

8-
ENV PATH /usr/pgsql-${PG_VERSION}/bin:$PATH
9-
ENV PGDATA /var/lib/pgsql/${PG_VERSION}/data
8+
ENV PATH=/usr/pgsql-${PG_VERSION}/bin:$PATH
9+
ENV PGDATA=/var/lib/pgsql/${PG_VERSION}/data
1010

1111

1212
################################################################################
@@ -16,8 +16,9 @@ ENV PGDATA /var/lib/pgsql/${PG_VERSION}/data
1616
################################################################################
1717

1818
# Install packages for build
19-
RUN dnf update -y
20-
RUN dnf install -y \
19+
RUN sed -i -e '/^mirrorlist=/s/^/#/' -e '/^#baseurl=/s/^#//' /etc/yum.repos.d/*.repo && \
20+
dnf update -y && \
21+
dnf install -y \
2122
clang gcc git krb5-devel libselinux-devel libzstd-devel lz4-devel make \
2223
openssl-devel pam-devel readline-devel rpmdevtools which zlib-devel
2324

@@ -28,7 +29,9 @@ RUN if [ "${RHEL_VERSION}" = "8" ]; then \
2829
dnf install -y --enablerepo=crb perl-IPC-Run; \
2930
fi
3031
RUN dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-${RHEL_VERSION}-x86_64/pgdg-redhat-repo-latest.noarch.rpm
31-
RUN dnf -qy module disable postgresql
32+
RUN if [ "${RHEL_VERSION}" = "8" ] || [ "${RHEL_VERSION}" = "9" ]; then \
33+
dnf -qy module disable postgresql; \
34+
fi
3235
RUN dnf install -y postgresql${PG_VERSION}-server postgresql${PG_VERSION}-devel
3336

3437

@@ -53,7 +56,7 @@ RUN cd pg_rman && \
5356
--output=../rpmbuild/SOURCES/pg_rman-${PG_RMAN_VERSION}-pg${PG_VERSION}.tar.gz
5457

5558
# Build RPMs
56-
RUN rpmbuild rpmbuild/SPECS/pg_rman${PG_VERSION}.spec \
59+
RUN QA_RPATHS=0x0002 rpmbuild rpmbuild/SPECS/pg_rman${PG_VERSION}.spec \
5760
-bb --define="dist .pg${PG_VERSION}.rhel${RHEL_VERSION}"
5861

5962

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ jobs:
1111
permissions:
1212
contents: write
1313
strategy:
14+
fail-fast: false
1415
matrix:
15-
RHEL_VERSION: ["8", "9"]
16+
RHEL_VERSION: ["8", "9", "10"]
1617
PG_VERSION: ["13", "14", "15", "16", "17"]
1718
steps:
1819
- name: Checkout repository

docs/index-ja.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ <h1 id="requirement">動作環境</h2>
14611461
<dt>PostgreSQLバージョン</dt>
14621462
<dd>PostgreSQL 13, 14, 15, 16, 17</dd>
14631463
<dt>OS</dt>
1464-
<dd>RHEL 8, 9</dd>
1464+
<dd>RHEL 8, 9, 10</dd>
14651465
</dl>
14661466

14671467

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ <h1 id="requirement">Requirements</h1>
14511451
<dt>PostgreSQL</dt>
14521452
<dd>PostgreSQL 13, 14, 15, 16, 17</dd>
14531453
<dt>OS</dt>
1454-
<dd>RHEL 8, 9</dd>
1454+
<dd>RHEL 8, 9, 10</dd>
14551455
</dl>
14561456

14571457

0 commit comments

Comments
 (0)