Skip to content

Commit

Permalink
Merge pull request #61 from cybertec-postgresql/Readme
Browse files Browse the repository at this point in the history
Readme
  • Loading branch information
Schmaetz authored Dec 6, 2024
2 parents a3e68a4 + 44bc253 commit f631431
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 17 deletions.
21 changes: 15 additions & 6 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,31 @@ On Kubernetes and Kubernetes-based environments, the image uses the k8-etcd, oth
export BASEOS=rocky9
export PACKAGER=dnf
export CONTAINERSUITE=cybertec-pg-container
export PGBACKREST_VERSION=2.51
export PGBACKREST_VERSION=2.54.0
export CCPROOT=$GOPATH/src/github.com/cybertec/cybertec-pg-container
export PATRONI_VERSION=3.3.1
export PATRONI_VERSION=3.3.2
export POSTGIS_VERSION=34
export PGVERSION=16
export PGVERSION_FULL=16.3
export OLD_PG_VERSIONS="13 14 15"
export PGVERSION=17
export PGVERSION_FULL=17.2
export OLD_PG_VERSIONS="13 14 15 16"
export BUILD=1
export ARCH=amd64

# Also use the ENV ROOTPATH to refer to the CYBERTEC-pg-container repo on your system. Otherwise the Dockerfiles cannot be found
export ROOTPATH=$(GOPATH)/src/github.com/cybertec/cybertec-pg-container

<p>You can build all images with make
- make all
- make base/postgres/pgbackrest</p>
- make postgres
- make postgres-gis
- make pgbackrest
- make pgbouncer
- make exporter
</p>
<p>Run Images locally:</p>

docker run -it IMAGEPATH:IMAGETAG

<p>Take a look inside:</p>

docker exec -it CONTAINERID /bin/bash
7 changes: 0 additions & 7 deletions docker/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,13 @@ ARG BASE_IMAGE
ARG IMAGE_REPOSITORY
ARG PATH
FROM $BASE_IMAGE
#FROM ${IMAGE_REPOSITORY}${PATH}${BASE_IMAGE}

# Arg for distinguish between ubi and rocky and other stuff
#ARG BASEOS
ARG PACKAGER

MAINTAINER CYBERTEC PostgreSQL International GmbH
LABEL vendor="CYBERTEC PostgreSQL International GmbH" url="https://www.cybertec-postgresql.com"
LABEL maintainer="Matthias Groemmer <[email protected]>"

#RUN microdnf -y --nodocs --noplugins --setopt=install_weak_deps=0 install ${PACKAGER}

RUN ${PACKAGER} -y install --nodocs https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm vim && ${PACKAGER} -y upgrade

RUN ${PACKAGER} -y install --nodocs --noplugins --setopt=install_weak_deps=0 \
Expand All @@ -28,7 +23,6 @@ RUN ${PACKAGER} -y install --nodocs --noplugins --setopt=install_weak_deps=0 \
glibc-langpack-en \
openssh-clients \
openssh-server \
#dnf-command(config-manager) \
&& ${PACKAGER} -y clean all ;

#Enable CRB-Repo (Powertools)
Expand All @@ -37,7 +31,6 @@ RUN ${PACKAGER} -y config-manager --set-enabled crb
RUN ${PACKAGER} --nodocs --noplugins --setopt=install_weak_deps=0 install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-$(uname -i)/pgdg-redhat-repo-latest.noarch.rpm && ${PACKAGER} -y update && ${PACKAGER} -y clean all
RUN dnf -qy module disable postgresql

#Cleanup



7 changes: 4 additions & 3 deletions docker/postgres-gis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ARG ETCD_VERSION
ARG ARCH

# Spilo-specific
ENV SET_USER=REL4_0_1 \
ENV SET_USER=REL4_1_0 \
PAM_OAUTH2=v1.0.1 \
PG_PERMISSIONS=REL_1_3 \
PLANTUNER_COMMIT=800d81bc85da64ff3ef66e12aed1d4e1e54fc006 \
Expand Down Expand Up @@ -126,8 +126,9 @@ RUN pip3 install 'PyYAML<6.0' setuptools pystache loader kazoo meld3 boto python
&& cd admin/runit-2.1.2 && package/install \
&& ln -s /usr/local/bin/runsvdir /usr/bin/runsvdir \
&& rm -rf /pg_permissions /pgextwlist /pg_stat_kcache /pgnodemx /timescaledb /set_user /pam-oauth2 \
&& rm /etc/pgbackrest.conf && rm -rf /var/spool/pgbackrest \
&& ${PACKAGER} -y remove $(rpm -qa "*devel*") python3-pip python3-wheel python3-dev python3-setuptools git patchutils flatpak glibc-static gcc glibc-devel \
&& rm /etc/pgbackrest.conf && rm -rf /var/spool/pgbackrest;

RUN ${PACKAGER} -y remove $(rpm -qa "*devel*") python3-pip python3-wheel python3-dev python3-setuptools git patchutils flatpak glibc-static gcc glibc-devel --exclude libgeotiff17-devel --exclude libtiff-devel --exclude libspatialite50-devel \
&& ${PACKAGER} -y autoremove \
&& ${PACKAGER} -y clean dbcache \
&& ${PACKAGER} -y clean all;
Expand Down
2 changes: 1 addition & 1 deletion docker/postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ARG ETCD_VERSION
ARG ARCH

# Spilo-specific
ENV SET_USER=REL4_0_1 \
ENV SET_USER=REL4_1_0 \
PAM_OAUTH2=v1.0.1 \
PG_PERMISSIONS=REL_1_3 \
PLANTUNER_COMMIT=800d81bc85da64ff3ef66e12aed1d4e1e54fc006 \
Expand Down
1 change: 1 addition & 0 deletions scripts/configure_spilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ def deep_update(a, b):
command: pgbackrest --stanza=db --delta restore
keep_data: True
no_params: True
no_leader: True
{{/USE_PGBACKREST}}
{{#USE_WALE}}
wal_e:
Expand Down
26 changes: 26 additions & 0 deletions tatus
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
CON-878
action_check_packages
build_workflow
etcd3
exporter_fix
fixICU
fixUpgrade
fixUpgradeError
fixpgbackrest
main
* noLeaderpgBackRest
pgnodemx-fix-template
post_script
postgis-fix
postgresql17_public_beta
removeMergeConflicts
stanzaUpgradeFix
timescaledb_via_packages
updateDockerfilepgBackRest
updateDockerfiles
updateExtensions
updateReadme
update_components
update_dockerfiles-postgis
upgrade_fixes
wal_dir

0 comments on commit f631431

Please sign in to comment.