Skip to content

Building testing pushing c8s support #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PostgreSQL container images
========================

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)
[![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)

This repository contains Dockerfiles for PostgreSQL images for OpenShift.
Users can choose between RHEL, Fedora and CentOS based images.
Expand Down
2 changes: 1 addition & 1 deletion common
Submodule common updated 1 files
+3 −1 test-lib.sh
3 changes: 3 additions & 0 deletions manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ DISTGEN_MULTI_RULES="
src=src/Dockerfile
dest=Dockerfile.c9s;

src=src/Dockerfile
dest=Dockerfile.c8s;

src=src/Dockerfile.fedora
dest=Dockerfile.fedora;
"
Expand Down
17 changes: 17 additions & 0 deletions specs/multispec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@ specs:
pkgs: "postgresql-server postgresql-contrib"
environment_setup: >-4
yum -y install postgresql && \
c8s:
distros:
- centos-stream-8-x86_64
s2i_base: quay.io/sclorg/s2i-core-c8s:c8s
org: "sclorg"
prod: "c8s"
openshift_tags: "database,postgresql,postgresql{{ spec.short }},postgresql-{{ spec.short }}"
redhat_component: "postgresql-{{ spec.short }}-container"
img_name: "{{ spec.org }}/postgresql-{{ spec.short }}-{{ spec.prod }}"
pkgs: "postgresql-server postgresql-contrib"
environment_setup: >-4
yum -y module enable postgresql:{{ spec.version }} && \
post_install: >-4
yum -y reinstall tzdata && \

fedora:
distros:
Expand Down Expand Up @@ -133,6 +147,7 @@ matrix:
- rhel-7-x86_64
- centos-7-x86_64
- rhel-8-x86_64
- centos-stream-8-x86_64
- centos-stream-9-x86_64
version: "9.6"
- distros:
Expand All @@ -145,11 +160,13 @@ matrix:
- rhel-8-x86_64
- centos-7-x86_64
- fedora-34-x86_64
- centos-stream-8-x86_64
- centos-stream-9-x86_64
version: "11"
- distros:
- rhel-8-x86_64
- fedora-34-x86_64
- centos-stream-8-x86_64
- centos-stream-9-x86_64
version: "12"
- distros:
Expand Down
4 changes: 2 additions & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ RUN {{ spec.environment_setup }}
{% if spec.version not in ["9.6", "10", "11"] %}
{% if spec.prod == 'rhel7' or spec.prod == 'centos7' %}
INSTALL_PKGS="$INSTALL_PKGS rh-postgresql{{ spec.short }}-pgaudit" && \
{% elif spec.prod == 'rhel8' or spec.prod == 'c9s' %}
{% elif spec.prod == 'rhel8' or spec.prod == 'c9s' or spec.prod == 'c8s' %}
INSTALL_PKGS="$INSTALL_PKGS pgaudit" && \
{% endif %}
{% endif %}
Expand All @@ -95,7 +95,7 @@ ENV CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/postgresql \
COPY root /
COPY ./s2i/bin/ $STI_SCRIPTS_PATH

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