Skip to content

Commit 9279b65

Browse files
authored
Merge pull request sclorg#437 from sclorg/building_testing_pushing_c8s_support
Building testing pushing c8s support
2 parents 2117ee8 + 2c2f8c7 commit 9279b65

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PostgreSQL container images
22
========================
33

4-
PostgreSQL 10 status:[![Docker Repository on Quay](https://quay.io/repository/centos7/postgresql-10-centos7/status "Docker Repository on Quay")](https://quay.io/repository/centos7/postgresql-10-centos7), PostgreSQL 12 status:[![Docker Repository on Quay](https://quay.io/repository/centos7/postgresql-12-centos7/status "Docker Repository on Quay")](https://quay.io/repository/centos7/postgresql-12-centos7)
4+
[![Build and push images to Quay.io registry](https://github.com/sclorg/postgresql-container/actions/workflows/build-and-push.yml/badge.svg)](https://github.com/sclorg/postgresql-container/actions/workflows/build-and-push.yml)
55

66
This repository contains Dockerfiles for PostgreSQL images for OpenShift.
77
Users can choose between RHEL, Fedora and CentOS based images.

common

Submodule common updated 1 file

manifest.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ DISTGEN_MULTI_RULES="
4141
src=src/Dockerfile
4242
dest=Dockerfile.c9s;
4343
44+
src=src/Dockerfile
45+
dest=Dockerfile.c8s;
46+
4447
src=src/Dockerfile.fedora
4548
dest=Dockerfile.fedora;
4649
"

specs/multispec.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,20 @@ specs:
6363
pkgs: "postgresql-server postgresql-contrib"
6464
environment_setup: >-4
6565
yum -y install postgresql && \
66+
c8s:
67+
distros:
68+
- centos-stream-8-x86_64
69+
s2i_base: quay.io/sclorg/s2i-core-c8s:c8s
70+
org: "sclorg"
71+
prod: "c8s"
72+
openshift_tags: "database,postgresql,postgresql{{ spec.short }},postgresql-{{ spec.short }}"
73+
redhat_component: "postgresql-{{ spec.short }}-container"
74+
img_name: "{{ spec.org }}/postgresql-{{ spec.short }}-{{ spec.prod }}"
75+
pkgs: "postgresql-server postgresql-contrib"
76+
environment_setup: >-4
77+
yum -y module enable postgresql:{{ spec.version }} && \
78+
post_install: >-4
79+
yum -y reinstall tzdata && \
6680
6781
fedora:
6882
distros:
@@ -133,6 +147,7 @@ matrix:
133147
- rhel-7-x86_64
134148
- centos-7-x86_64
135149
- rhel-8-x86_64
150+
- centos-stream-8-x86_64
136151
- centos-stream-9-x86_64
137152
version: "9.6"
138153
- distros:
@@ -145,11 +160,13 @@ matrix:
145160
- rhel-8-x86_64
146161
- centos-7-x86_64
147162
- fedora-34-x86_64
163+
- centos-stream-8-x86_64
148164
- centos-stream-9-x86_64
149165
version: "11"
150166
- distros:
151167
- rhel-8-x86_64
152168
- fedora-34-x86_64
169+
- centos-stream-8-x86_64
153170
- centos-stream-9-x86_64
154171
version: "12"
155172
- distros:

src/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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' %}
76+
{% elif spec.prod == 'rhel8' 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" %}
98+
{% if spec.prod != "rhel8" 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)