Skip to content

Commit a5e9b0f

Browse files
committed
Update dist-gen files to generate desired results
1 parent 674dd35 commit a5e9b0f

File tree

8 files changed

+14
-20
lines changed

8 files changed

+14
-20
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# PostgreSQL 12 SQL Database Server Container Image
22

3-
This container image features the PostgreSQL 12 SQL database server, suitable for OpenShift and general applications.
4-
Only RHEL based images are available.
5-
RHEL images can be found in the [Red Hat Container Catalog](https://access.redhat.com/containers/).
6-
The resulting image can be executed using [podman](https://github.com/containers/libpod).
3+
This container image features the PostgreSQL 12 SQL database server, suitable for OpenShift and general applications. Users have the option to select from RHEL, CentOS Stream, and Fedora-based images. RHEL images can be found in the [Red Hat Container Catalog](https://access.redhat.com/containers/), while CentOS Stream images are available on [Quay.io](https://quay.io/organization/sclorg), and Fedora images can be accessed in [Quay.io](https://quay.io/organization/fedora). The resulting image can be executed using [podman](https://github.com/containers/libpod).
74

85
Please note that while the examples provided in this README utilize `podman`, it is possible to substitute any instance of `podman` with `docker` and the same arguments. `podman` can be installed with on Fedora with command `dnf install podman-docker`.
96

@@ -113,7 +110,7 @@ $ podman run -d --name postgresql_database \
113110
-e POSTGRESQL_MIGRATION_REMOTE_HOST=172.17.0.2 \
114111
-e POSTGRESQL_MIGRATION_ADMIN_PASSWORD=remoteAdminP@ssword \
115112
[ OPTIONAL_CONFIGURATION_VARIABLES ]
116-
rhel8/postgresql-13
113+
rhel8/postgresql-12
117114
```
118115

119116
The migration is performed using the **dump and restore** method (running `pg_dumpall` against the remote cluster and importing the dump locally using `psql`). The process is streamed (via a Unix pipeline), eliminating the need for intermediate dump files and conserving storage space.
@@ -227,4 +224,4 @@ Subsequently, log output is redirected to the logging collector process and will
227224

228225
## Additional Resources
229226

230-
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.
227+
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, the CentOS Stream 9 Dockerfile is named Dockerfile.c9s, the CentOS Stream 10 Dockerfile is named Dockerfile.c10s, and the Fedora Dockerfile is named Dockerfile.fedora.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PostgreSQL 13 SQL Database Server Container Image
22

3-
This container image features the PostgreSQL 13 SQL database server, suitable for OpenShift and general applications. Users have the option to select from RHEL, CentOS Stream, and Fedora-based images. RHEL images can be found in the [Red Hat Container Catalog](https://access.redhat.com/containers/), while CentOS Stream images are available on [Quay.io](https://quay.io/organization/sclorg). The resulting image can be executed using [podman](https://github.com/containers/libpod).
3+
This container image features the PostgreSQL 13 SQL database server, suitable for OpenShift and general applications. Users have the option to select from RHEL, CentOS Stream, and Fedora-based images. RHEL images can be found in the [Red Hat Container Catalog](https://access.redhat.com/containers/), while CentOS Stream images are available on [Quay.io](https://quay.io/organization/sclorg), and Fedora images can be accessed in [Quay.io](https://quay.io/organization/fedora). The resulting image can be executed using [podman](https://github.com/containers/libpod).
44

55
Please note that while the examples provided in this README utilize `podman`, it is possible to substitute any instance of `podman` with `docker` and the same arguments. `podman` can be installed with on Fedora with command `dnf install podman-docker`.
66

@@ -224,4 +224,4 @@ Subsequently, log output is redirected to the logging collector process and will
224224

225225
## Additional Resources
226226

227-
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 CentOS Stream 9 Dockerfile is named Dockerfile.c9s.
227+
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, the CentOS Stream 9 Dockerfile is named Dockerfile.c9s, the CentOS Stream 10 Dockerfile is named Dockerfile.c10s, and the Fedora Dockerfile is named Dockerfile.fedora.

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

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

225225
## Additional Resources
226226

227-
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 CentOS Stream 9 Dockerfile is named Dockerfile.c9s.
227+
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, the CentOS Stream 9 Dockerfile is named Dockerfile.c9s, the CentOS Stream 10 Dockerfile is named Dockerfile.c10s, and the Fedora Dockerfile is named Dockerfile.fedora.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Data files are hard-linked from the old to the new data directory, providing per
170170

171171
## Extending Image
172172

173-
You can extend this image in Openshift using the `Source` build strategy or via the standalone [source-to-image](https://github.com/openshift/source-to-image) application (where available). For this example, assume that you are using the `rhel10-postgresql-16` image, available via `postgresql:16` imagestream tag in Openshift.
173+
You can extend this image in Openshift using the `Source` build strategy or via the standalone [source-to-image](https://github.com/openshift/source-to-image) application (where available). For this example, assume that you are using the `rhel10/postgresql-16` image, available via `postgresql:16` imagestream tag in Openshift.
174174

175175
To build a customized image `new-postgresql` with configuration from `https://github.com/sclorg/postgresql-container/tree/master/examples/extending-image`, run:
176176

manifest.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ COPY_RULES:
5151
- src: src/root/usr/share/container-scripts/postgresql/openshift-custom-postgresql.conf.template
5252
dest: root/usr/share/container-scripts/postgresql/openshift-custom-postgresql.conf.template
5353

54-
- src: src/root/usr/share/container-scripts/postgresql/scl_enable
55-
dest: root/usr/share/container-scripts/postgresql/scl_enable
56-
5754
- src: src/root/usr/bin/run-postgresql
5855
dest: root/usr/bin/run-postgresql
5956
mode: "0755"

specs/multispec.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ specs:
104104
prev_short: "12"
105105
common_image_name: "{{ spec.org }}/postgresql-{{ spec.short }}-{{ spec.prod }}"
106106
c9s_image_name: "sclorg/postgresql-{{ spec.short }}-c9s"
107-
rhel_image_name: "rhel8/postgresql-{{ spec.short }}"
107+
rhel_image_name: "rhel9/postgresql-{{ spec.short }}"
108108
latest_fedora: "f38"
109109

110110
"15":
@@ -113,7 +113,8 @@ specs:
113113
short: "15"
114114
prev_short: "13"
115115
common_image_name: "{{ spec.org }}/postgresql-{{ spec.short }}-{{ spec.prod }}"
116-
rhel_image_name: "rhel8/postgresql-{{ spec.short }}"
116+
c9s_image_name: "sclorg/postgresql-{{ spec.short }}-c9s"
117+
rhel_image_name: "rhel9/postgresql-{{ spec.short }}"
117118
latest_fedora: "f40"
118119

119120
"16":
@@ -122,7 +123,8 @@ specs:
122123
short: "16"
123124
prev_short: "15"
124125
common_image_name: "{{ spec.org }}/postgresql-{{ spec.short }}-{{ spec.prod }}"
125-
c9s_image_name: "sclorg/postgresql-{{ spec.short }}-c9s"
126+
c9s_image_name: "sclorg/postgresql-{{ spec.short }}-c10s"
127+
rhel_image_name: "rhel10/postgresql-{{ spec.short }}"
126128
latest_fedora: "f40"
127129

128130

src/root/usr/libexec/check-container

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
# wait for it (this script might run forever, we expect that the timeout is
88
# maintained externally).
99

10-
test -z "$ENABLED_COLLECTIONS" || . scl_source enable $ENABLED_COLLECTIONS
11-
1210
if test x"$1" = "x--live"; then
1311
# Since livenessProbe is about to detect container deadlocks, and we
1412
# so far don't know about real deadlocks to be detected -- we keep

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ $ podman run -d --name postgresql_database \
110110
-e POSTGRESQL_MIGRATION_REMOTE_HOST=172.17.0.2 \
111111
-e POSTGRESQL_MIGRATION_ADMIN_PASSWORD=remoteAdminP@ssword \
112112
[ OPTIONAL_CONFIGURATION_VARIABLES ]
113-
rhel8/postgresql-13
113+
{{ spec.rhel_image_name }}
114114
```
115115

116116
The migration is performed using the **dump and restore** method (running `pg_dumpall` against the remote cluster and importing the dump locally using `psql`). The process is streamed (via a Unix pipeline), eliminating the need for intermediate dump files and conserving storage space.
@@ -224,4 +224,4 @@ Subsequently, log output is redirected to the logging collector process and will
224224

225225
## Additional Resources
226226

227-
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.
227+
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, the CentOS Stream 9 Dockerfile is named Dockerfile.c9s, the CentOS Stream 10 Dockerfile is named Dockerfile.c10s, and the Fedora Dockerfile is named Dockerfile.fedora.

0 commit comments

Comments
 (0)