Skip to content

cybertec-postgresql/CYBERTEC-pg-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
matthias
Mar 2, 2023
a0dac1c · Mar 2, 2023

History

18 Commits
Nov 30, 2022
Nov 30, 2022
Mar 2, 2023
Feb 15, 2023
Nov 30, 2022
Dec 23, 2022
Nov 30, 2022
Mar 2, 2023
Jan 11, 2023
Feb 15, 2023
Jan 11, 2023
Nov 30, 2022
Nov 30, 2022

Repository files navigation

CYBERTEC-pg-container: PostgreSQL-HA-Cluster based on Rocky-Linux

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).

Documentation

See the documentation for some examples of how to run this suite in Docker, Kubernetes or Kubernetes-based environments.

Operational area

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

Build Images

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