Skip to content

Commit f631431

Browse files
authored
Merge pull request #61 from cybertec-postgresql/Readme
Readme
2 parents a3e68a4 + 44bc253 commit f631431

File tree

6 files changed

+47
-17
lines changed

6 files changed

+47
-17
lines changed

Readme.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,31 @@ On Kubernetes and Kubernetes-based environments, the image uses the k8-etcd, oth
2323
export BASEOS=rocky9
2424
export PACKAGER=dnf
2525
export CONTAINERSUITE=cybertec-pg-container
26-
export PGBACKREST_VERSION=2.51
26+
export PGBACKREST_VERSION=2.54.0
2727
export CCPROOT=$GOPATH/src/github.com/cybertec/cybertec-pg-container
28-
export PATRONI_VERSION=3.3.1
28+
export PATRONI_VERSION=3.3.2
2929
export POSTGIS_VERSION=34
30-
export PGVERSION=16
31-
export PGVERSION_FULL=16.3
32-
export OLD_PG_VERSIONS="13 14 15"
30+
export PGVERSION=17
31+
export PGVERSION_FULL=17.2
32+
export OLD_PG_VERSIONS="13 14 15 16"
3333
export BUILD=1
3434
export ARCH=amd64
3535

36+
# Also use the ENV ROOTPATH to refer to the CYBERTEC-pg-container repo on your system. Otherwise the Dockerfiles cannot be found
37+
export ROOTPATH=$(GOPATH)/src/github.com/cybertec/cybertec-pg-container
38+
3639
<p>You can build all images with make
3740
- make all
38-
- make base/postgres/pgbackrest</p>
41+
- make postgres
42+
- make postgres-gis
43+
- make pgbackrest
44+
- make pgbouncer
45+
- make exporter
46+
</p>
3947
<p>Run Images locally:</p>
4048

4149
docker run -it IMAGEPATH:IMAGETAG
50+
4251
<p>Take a look inside:</p>
4352

4453
docker exec -it CONTAINERID /bin/bash

docker/base/Dockerfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,13 @@ ARG BASE_IMAGE
22
ARG IMAGE_REPOSITORY
33
ARG PATH
44
FROM $BASE_IMAGE
5-
#FROM ${IMAGE_REPOSITORY}${PATH}${BASE_IMAGE}
65

7-
# Arg for distinguish between ubi and rocky and other stuff
8-
#ARG BASEOS
96
ARG PACKAGER
107

118
MAINTAINER CYBERTEC PostgreSQL International GmbH
129
LABEL vendor="CYBERTEC PostgreSQL International GmbH" url="https://www.cybertec-postgresql.com"
1310
LABEL maintainer="Matthias Groemmer <matthias.groemmer@cybertec.at>"
1411

15-
#RUN microdnf -y --nodocs --noplugins --setopt=install_weak_deps=0 install ${PACKAGER}
16-
1712
RUN ${PACKAGER} -y install --nodocs https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm vim && ${PACKAGER} -y upgrade
1813

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

3428
#Enable CRB-Repo (Powertools)
@@ -37,7 +31,6 @@ RUN ${PACKAGER} -y config-manager --set-enabled crb
3731
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
3832
RUN dnf -qy module disable postgresql
3933

40-
#Cleanup
4134

4235

4336

docker/postgres-gis/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ARG ETCD_VERSION
1818
ARG ARCH
1919

2020
# Spilo-specific
21-
ENV SET_USER=REL4_0_1 \
21+
ENV SET_USER=REL4_1_0 \
2222
PAM_OAUTH2=v1.0.1 \
2323
PG_PERMISSIONS=REL_1_3 \
2424
PLANTUNER_COMMIT=800d81bc85da64ff3ef66e12aed1d4e1e54fc006 \
@@ -126,8 +126,9 @@ RUN pip3 install 'PyYAML<6.0' setuptools pystache loader kazoo meld3 boto python
126126
&& cd admin/runit-2.1.2 && package/install \
127127
&& ln -s /usr/local/bin/runsvdir /usr/bin/runsvdir \
128128
&& rm -rf /pg_permissions /pgextwlist /pg_stat_kcache /pgnodemx /timescaledb /set_user /pam-oauth2 \
129-
&& rm /etc/pgbackrest.conf && rm -rf /var/spool/pgbackrest \
130-
&& ${PACKAGER} -y remove $(rpm -qa "*devel*") python3-pip python3-wheel python3-dev python3-setuptools git patchutils flatpak glibc-static gcc glibc-devel \
129+
&& rm /etc/pgbackrest.conf && rm -rf /var/spool/pgbackrest;
130+
131+
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 \
131132
&& ${PACKAGER} -y autoremove \
132133
&& ${PACKAGER} -y clean dbcache \
133134
&& ${PACKAGER} -y clean all;

docker/postgres/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ARG ETCD_VERSION
1717
ARG ARCH
1818

1919
# Spilo-specific
20-
ENV SET_USER=REL4_0_1 \
20+
ENV SET_USER=REL4_1_0 \
2121
PAM_OAUTH2=v1.0.1 \
2222
PG_PERMISSIONS=REL_1_3 \
2323
PLANTUNER_COMMIT=800d81bc85da64ff3ef66e12aed1d4e1e54fc006 \

scripts/configure_spilo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ def deep_update(a, b):
384384
command: pgbackrest --stanza=db --delta restore
385385
keep_data: True
386386
no_params: True
387+
no_leader: True
387388
{{/USE_PGBACKREST}}
388389
{{#USE_WALE}}
389390
wal_e:

tatus

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
CON-878
2+
action_check_packages
3+
build_workflow
4+
etcd3
5+
exporter_fix
6+
fixICU
7+
fixUpgrade
8+
fixUpgradeError
9+
fixpgbackrest
10+
main
11+
* noLeaderpgBackRest
12+
pgnodemx-fix-template
13+
post_script
14+
postgis-fix
15+
postgresql17_public_beta
16+
removeMergeConflicts
17+
stanzaUpgradeFix
18+
timescaledb_via_packages
19+
updateDockerfilepgBackRest
20+
updateDockerfiles
21+
updateExtensions
22+
updateReadme
23+
update_components
24+
update_dockerfiles-postgis
25+
upgrade_fixes
26+
wal_dir

0 commit comments

Comments
 (0)