{"id":13567671,"url":"https://github.com/sclorg/postgresql-container","last_synced_at":"2025-10-20T04:36:29.941Z","repository":{"id":28940521,"uuid":"32466378","full_name":"sclorg/postgresql-container","owner":"sclorg","description":"PostgreSQL container images based on Red Hat Software Collections and intended for OpenShift and general usage. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.","archived":false,"fork":false,"pushed_at":"2025-03-25T09:01:55.000Z","size":869,"stargazers_count":166,"open_issues_count":42,"forks_count":217,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-04-01T08:37:28.735Z","etag":null,"topics":["centos","container","database","docker","dockerfile","openshift","postgresql","rhel7"],"latest_commit_sha":null,"homepage":"http://softwarecollections.org","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sclorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-18T15:15:33.000Z","updated_at":"2025-03-25T09:01:58.000Z","dependencies_parsed_at":"2023-02-15T00:16:52.755Z","dependency_job_id":"de7ad1ce-cec8-4d0d-a650-44c634a3f169","html_url":"https://github.com/sclorg/postgresql-container","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fpostgresql-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fpostgresql-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fpostgresql-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fpostgresql-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sclorg","download_url":"https://codeload.github.com/sclorg/postgresql-container/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247809964,"owners_count":20999816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["centos","container","database","docker","dockerfile","openshift","postgresql","rhel7"],"created_at":"2024-08-01T13:02:38.655Z","updated_at":"2025-10-20T04:36:29.831Z","avatar_url":"https://github.com/sclorg.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# PostgreSQL Container Images\n\n[![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)\n\nImages available on Quay.io are:\n\n- CentOS Stream 9 [postgresql-13](https://quay.io/repository/sclorg/postgresql-13-c9s)\n- CentOS Stream 9 [postgresql-15](https://quay.io/repository/sclorg/postgresql-15-c9s)\n- Fedora [postgresql-11](https://quay.io/repository/fedora/postgresql-11)\n- Fedora [postgresql-12](https://quay.io/repository/fedora/postgresql-12)\n- Fedora [postgresql-13](https://quay.io/repository/fedora/postgresql-13)\n- Fedora [postgresql-14](https://quay.io/repository/fedora/postgresql-14)\n- Fedora [postgresql-15](https://quay.io/repository/fedora/postgresql-15)\n\nThis repository provides Dockerfiles for PostgreSQL container images, optimized for use with OpenShift. These images are available in RHEL, Fedora, and CentOS-based variants.\n\nFor more information about using these images with OpenShift, please refer to the official [OpenShift Documentation](https://docs.okd.io/latest/openshift_images/using-templates.html).\n\nTo contribute to this project, please review [the Contribution Guidelines](https://github.com/sclorg/welcome/blob/master/contribution.md).\nFor learning more information about concepts used in these container images, see the [Landing page](https://github.com/sclorg/welcome).\n\n## Versions\n\nPostgreSQL versions currently supported are:\n\n- [postgresql-12](https://github.com/sclorg/postgresql-container/tree/master/12)\n- [postgresql-13](https://github.com/sclorg/postgresql-container/tree/master/13)\n- [postgresql-14](https://github.com/sclorg/postgresql-container/tree/master/14)\n- [postgresql-15](https://github.com/sclorg/postgresql-container/tree/master/15)\n\nRHEL versions currently supported are:\n- RHEL8\n- RHEL9\n- RHEL10\n\nCentOS versions currently supported are:\n- CentOS Stream 9\n\n## Installation\n\nChoose either the CentOS Stream 9 or RHEL9-based image:\n\n- **RHEL9 based image**\n\n  These images are available in the [Red Hat Container Catalog](https://access.redhat.com/containers/#/registry.access.redhat.com/rhel9/postgresql-13).\n  To download the image, execute the following command:\n\n  ```bash\n  podman pull registry.redhat.io/rhel9/postgresql-13\n  ```\n\n  To build a RHEL9-based image, ensure you run Docker build on a RHEL machine with a valid subscription.\n\n  ```bash\n  $ git clone --recursive https://github.com/sclorg/postgresql-container.git\n  $ cd postgresql\n  $ make build TARGET=rhel9 VERSIONS=13\n  ```\n\n- **CentOS Stream 9 based image**\n\n  These images are available on Quay.io. To download the image, execute the following command:\n\n  ```bash\n  $ podman pull https://quay.io/repository/sclorg/postgresql-13-c9s\n  ```\n\n  To build a PostgreSQL image from scratch, perform the following steps:\n\n  ```bash\n  $ git clone --recursive https://github.com/sclorg/postgresql-container.git\n  $ cd postgresql\n  $ make build TARGET=c9s VERSIONS=13\n  ```\n\nNote: While the installation steps utilize `podman`, you can substitute these calls with `docker` with the same arguments.\n\n**Warning: By omitting the `VERSIONS` parameter, the build/test action will be executed on all provided versions of PostgreSQL.**\n\n## Contributing Guidelines\n\nThis repository utilizes [distgen](https://github.com/devexp-db/distgen/) for generating image source files. If you are interested in updating a Dockerfile, please modify the relevant sections in the `specs/multispec.yml` file and/or the `Dockerfile.template` (or other distgen files), and then execute `make generate`.\n\nBefore you begin, ensure that you have `distgen` installed by running `dg --version`. If `distgen` is not installed on your system, follow the installation guide available at [distgen's GitHub repository](https://github.com/devexp-db/distgen/).\nAdditionally, for testing purposes, install `go-md2man` from this repository [go-md2man](https://github.com/cpuguy83/go-md2man) or via `dnf install go-md2man`.\n\nTo contribute, please follow these steps:\n\n1. Fork the repository\n2. Run `git submodule update --init` to download the `common` submodule containing the `common/common.mk` makefile.\n3. Implement a new feature or bug fix in the templates (found in the `src` directory) or update values in the `specs/multispec.yml` file.\n   - Note: If no changes are made to these directories, file regeneration is not necessary.\n4. Regenerate all files by executing `make generate`.\n5. Consider running CI tests, as described in the Test section below.\n6. Commit the files and generated files in two separated commits with a conventional commit message for each.\n7. Open a pull request for review!\n\n## Usage\n\nFor detailed information on the usage of specific PostgreSQL Dockerfiles, please refer to the corresponding usage documentation:\n\n- [PostgreSQL 12 Usage Documentation](https://github.com/sclorg/postgresql-container/tree/master/12)\n- [PostgreSQL 13 Usage Documentation](https://github.com/sclorg/postgresql-container/tree/master/13)\n- [PostgreSQL 14 Usage Documentation](https://github.com/sclorg/postgresql-container/tree/master/14)\n- [PostgreSQL 15 Usage Documentation](https://github.com/sclorg/postgresql-container/tree/master/15)\n\nFor unsupported versions, you may refer to:\n\n- [PostgreSQL 9.2](https://github.com/sclorg/postgresql-container/blob/f213e5d0/9.2)\n- [PostgreSQL 9.4](https://github.com/sclorg/postgresql-container/blob/2ab68e86/9.4)\n\n## Test\n\nThis repository includes a testing framework that verifies the basic functionality of the PostgreSQL image. Users can choose to test the image based on RHEL or CentOS Stream.\n\n- **RHEL-based image**\n\n  To test a RHEL9-based PostgreSQL image, ensure you are running the test on a properly subscribed RHEL machine.\n\n  ```bash\n  $ cd postgresql\n  $ make test TARGET=rhel9 VERSIONS=13\n  ```\n\n- **CentOS Stream-based image**\n\n  ```bash\n  $ cd postgresql\n  $ make test TARGET=c9s VERSIONS=13\n  ```\n\n- To run a specific subset of test cases, use the `TESTS` parameter:\n\n  ```bash\n  $ cd postgresql\n  $ make test VERSIONS=13 TESTS=\"run_general_tests run_replication_test\"\n  ```\n\n**Note: By omitting the `VERSIONS` parameter, the build/test action will be performed on all provided versions of PostgreSQL.**\n\nThe test command is utilized from the `common` submodule. While it is possible to run `make test-openshift-4`, it is typically not necessary. All commands for the Makefile can be found in `common/Makefile`. The `make test` command will execute all tests required by the CI.\n\n## Enabling SSL/TLS for PostgreSQL container\n\nFor comprehensive information and instructions on enabling SSL/TLS, please refer to the `examples/enable-ssl/README.md`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fpostgresql-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsclorg%2Fpostgresql-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fpostgresql-container/lists"}