CYBERTEC-pg-container is a Docker suite that combines PostgreSQL, Patroni and etcd to create HA-PostgreSQL clusters based on containers. This suite is also the imagebase for the CYBERTEC-pg-operator(cpo).
See the documentation for some examples of how to run this suite in Docker, Kubernetes or Kubernetes-based environments.
These images can run locally on Docker, Kubernetes or on Kubernetes-based environments such as Openshift or Rancher. On Kubernetes and Kubernetes-based environments, the image uses the k8-etcd, otherwise etcd is included locally in the image
To create the images via Makefile, you need the following environment variables and Go on your system.
export GOPATH=$HOME/cdev
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN
export BASE_IMAGE=rockylinux:9
export IMAGE_REPOSITORY=docker.io
export BASEOS=rocky9
export PACKAGER=dnf
export CONTAINERSUITE=cybertec-pg-container
export PGBACKREST_VERSION=2.41
export PATRONI_VERSION=2.1.4
export PG_MAJOR=14
export PG_VERSION=14.6
export OLD_PG_VERSIONS="10 11 12 13"
export BUILD=1
You can build all images with make - make all - make base/postgres/pgbackrest
Run Images locally:
docker run -it IMAGEPATH:IMAGETAG
Take a look inside:
docker exec -it CONTAINERID /bin/bash