From 58ac98f421b372eceb087fa3334b3d8bbd7a7773 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Sat, 17 Sep 2022 20:26:24 +0200 Subject: [PATCH] [bitnami/postgresql-repmgr] Release 13.8.0-debian-11-r16 (#6701) Signed-off-by: Bitnami Containers Signed-off-by: Bitnami Containers --- bitnami/postgresql-repmgr/13/debian-11/Dockerfile | 14 +++++++------- .../opt/bitnami/.bitnami_components.json | 4 ++-- .../execs/includes/anotate_event_processing.sh | 2 +- .../rootfs/events/execs/includes/lock_primary.sh | 2 +- .../rootfs/events/execs/includes/lock_standby.sh | 2 +- .../rootfs/events/execs/includes/unlock_primary.sh | 2 +- .../rootfs/events/execs/includes/unlock_standby.sh | 2 +- .../rootfs/events/execs/primary_register.sh | 2 +- .../rootfs/events/execs/repmgrd_failover_follow.sh | 2 +- .../rootfs/events/execs/standby_follow.sh | 2 +- .../rootfs/events/execs/standby_promote.sh | 2 +- .../13/debian-11/rootfs/events/router.sh | 2 +- .../rootfs/opt/bitnami/scripts/postgresql-env.sh | 1 - .../opt/bitnami/scripts/postgresql-repmgr/run.sh | 4 ++-- bitnami/postgresql-repmgr/README.md | 4 ++-- 15 files changed, 23 insertions(+), 24 deletions(-) diff --git a/bitnami/postgresql-repmgr/13/debian-11/Dockerfile b/bitnami/postgresql-repmgr/13/debian-11/Dockerfile index 0290fd5734f7..308f85a19772 100644 --- a/bitnami/postgresql-repmgr/13/debian-11/Dockerfile +++ b/bitnami/postgresql-repmgr/13/debian-11/Dockerfile @@ -4,7 +4,7 @@ ARG TARGETARCH LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \ org.opencontainers.image.description="Application packaged by Bitnami" \ - org.opencontainers.image.ref.name="13.8.0-debian-11-r15" \ + org.opencontainers.image.ref.name="13.8.0-debian-11-r16" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr" \ org.opencontainers.image.title="postgresql-repmgr" \ org.opencontainers.image.vendor="VMware, Inc." \ @@ -20,13 +20,13 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Install required system packages and dependencies RUN install_packages acl ca-certificates curl gzip libbsd0 libedit2 libffi7 libgcc-s1 libgmp10 libgnutls30 libhogweed6 libicu67 libidn2-0 libldap-2.4-2 liblzma5 libmd0 libnettle8 libp11-kit0 libpcre3 libreadline8 libsasl2-2 libsqlite3-0 libssl1.1 libstdc++6 libtasn1-6 libtinfo6 libunistring2 libuuid1 libxml2 libxslt1.1 locales procps tar zlib1g RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \ - if [ ! -f postgresql-repmgr-13.8.0-8-linux-${OS_ARCH}-debian-11.tar.gz ]; then \ - curl -SsLf https://downloads.bitnami.com/files/stacksmith/postgresql-repmgr-13.8.0-8-linux-${OS_ARCH}-debian-11.tar.gz -O ; \ - curl -SsLf https://downloads.bitnami.com/files/stacksmith/postgresql-repmgr-13.8.0-8-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \ + if [ ! -f postgresql-repmgr-13.8.0-9-linux-${OS_ARCH}-debian-11.tar.gz ]; then \ + curl -SsLf https://downloads.bitnami.com/files/stacksmith/postgresql-repmgr-13.8.0-9-linux-${OS_ARCH}-debian-11.tar.gz -O ; \ + curl -SsLf https://downloads.bitnami.com/files/stacksmith/postgresql-repmgr-13.8.0-9-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \ fi && \ - sha256sum -c postgresql-repmgr-13.8.0-8-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \ - tar -zxf postgresql-repmgr-13.8.0-8-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \ - rm -rf postgresql-repmgr-13.8.0-8-linux-${OS_ARCH}-debian-11.tar.gz postgresql-repmgr-13.8.0-8-linux-${OS_ARCH}-debian-11.tar.gz.sha256 + sha256sum -c postgresql-repmgr-13.8.0-9-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \ + tar -zxf postgresql-repmgr-13.8.0-9-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \ + rm -rf postgresql-repmgr-13.8.0-9-linux-${OS_ARCH}-debian-11.tar.gz postgresql-repmgr-13.8.0-9-linux-${OS_ARCH}-debian-11.tar.gz.sha256 RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \ if [ ! -f gosu-1.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz ]; then \ curl -SsLf https://downloads.bitnami.com/files/stacksmith/gosu-1.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz -O ; \ diff --git a/bitnami/postgresql-repmgr/13/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/postgresql-repmgr/13/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json index 1cecea986b05..37ff22bf8e65 100644 --- a/bitnami/postgresql-repmgr/13/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json +++ b/bitnami/postgresql-repmgr/13/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json @@ -8,9 +8,9 @@ }, "postgresql-repmgr": { "arch": "amd64", - "digest": "8794f2ff3d89f48a415ecaf7d22890f4f6149216d5c609bf30f3cde330c5539b", + "digest": "233ab5c4f1eaf6afa85d20b3b20c93323de35f658f5691831d397c6c195b8fe4", "distro": "debian-11", "type": "NAMI", - "version": "13.8.0-8" + "version": "13.8.0-9" } } \ No newline at end of file diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/anotate_event_processing.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/anotate_event_processing.sh index f713c5118657..b6b8d2caba0b 100755 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/anotate_event_processing.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/anotate_event_processing.sh @@ -3,7 +3,7 @@ set -o errexit set -o nounset set -o pipefail -# set -o xtrace # Uncomment this line for debugging purpose +# set -o xtrace # Uncomment this line for debugging purposes header="[REPMGR EVENT::$2]" export header diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/lock_primary.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/lock_primary.sh index a338ca0e9c54..37b889ce8f49 100755 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/lock_primary.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/lock_primary.sh @@ -3,7 +3,7 @@ set -o errexit set -o nounset set -o pipefail -# set -o xtrace # Uncomment this line for debugging purpose +# set -o xtrace # Uncomment this line for debugging purposes # shellcheck disable=SC2154 echo "$header Locking primary..." diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/lock_standby.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/lock_standby.sh index fbb478ad2683..641c19883b91 100755 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/lock_standby.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/lock_standby.sh @@ -3,7 +3,7 @@ set -o errexit set -o nounset set -o pipefail -# set -o xtrace # Uncomment this line for debugging purpose +# set -o xtrace # Uncomment this line for debugging purposes readonly query="SELECT upstream_node_id FROM repmgr.nodes WHERE node_id=$(repmgr_get_node_id)" readonly new_upstream_node_id="$(echo "$query" | BITNAMI_DEBUG=true postgresql_execute "$REPMGR_DATABASE" "$POSTGRESQL_REPLICATION_USER" "$POSTGRESQL_REPLICATION_PASSWORD" "" "" "-tA")" diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/unlock_primary.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/unlock_primary.sh index be72fb90cba6..5d731407d82d 100755 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/unlock_primary.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/unlock_primary.sh @@ -3,7 +3,7 @@ set -o errexit set -o nounset set -o pipefail -# set -o xtrace # Uncomment this line for debugging purpose +# set -o xtrace # Uncomment this line for debugging purposes # shellcheck disable=SC2154 echo "$header Unlocking primary..." diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/unlock_standby.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/unlock_standby.sh index 32b28ed5f531..75934243be95 100755 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/unlock_standby.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/includes/unlock_standby.sh @@ -3,7 +3,7 @@ set -o errexit set -o nounset set -o pipefail -# set -o xtrace # Uncomment this line for debugging purpose +# set -o xtrace # Uncomment this line for debugging purposes # shellcheck disable=SC2154 echo "$header Unlocking standby..." diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/primary_register.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/primary_register.sh index 0558ff3ba88e..00d4cf46d8fa 100755 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/primary_register.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/primary_register.sh @@ -5,7 +5,7 @@ set -o errexit set -o nounset set -o pipefail -# set -o xtrace # Uncomment this line for debugging purpose +# set -o xtrace # Uncomment this line for debugging purposes . "$REPMGR_EVENTS_DIR/execs/includes/anotate_event_processing.sh" . "$REPMGR_EVENTS_DIR/execs/includes/lock_primary.sh" diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/repmgrd_failover_follow.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/repmgrd_failover_follow.sh index be9642109dbc..42cade1ac528 100755 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/repmgrd_failover_follow.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/repmgrd_failover_follow.sh @@ -5,7 +5,7 @@ set -o errexit set -o nounset set -o pipefail -# set -o xtrace # Uncomment this line for debugging purpose +# set -o xtrace # Uncomment this line for debugging purposes . "$REPMGR_EVENTS_DIR/execs/includes/anotate_event_processing.sh" . "$REPMGR_EVENTS_DIR/execs/includes/lock_standby.sh" diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/standby_follow.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/standby_follow.sh index ba339d0e20e9..c5f07946504f 100755 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/standby_follow.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/standby_follow.sh @@ -5,7 +5,7 @@ set -o errexit set -o nounset set -o pipefail -# set -o xtrace # Uncomment this line for debugging purpose +# set -o xtrace # Uncomment this line for debugging purposes . "$REPMGR_EVENTS_DIR/execs/includes/anotate_event_processing.sh" . "$REPMGR_EVENTS_DIR/execs/includes/unlock_primary.sh" diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/standby_promote.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/standby_promote.sh index 0558ff3ba88e..00d4cf46d8fa 100755 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/standby_promote.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/execs/standby_promote.sh @@ -5,7 +5,7 @@ set -o errexit set -o nounset set -o pipefail -# set -o xtrace # Uncomment this line for debugging purpose +# set -o xtrace # Uncomment this line for debugging purposes . "$REPMGR_EVENTS_DIR/execs/includes/anotate_event_processing.sh" . "$REPMGR_EVENTS_DIR/execs/includes/lock_primary.sh" diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/router.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/router.sh index 22fc13a2a3cd..3b187f14e390 100755 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/router.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/events/router.sh @@ -5,7 +5,7 @@ set -o errexit set -o nounset set -o pipefail -# set -o xtrace # Uncomment this line for debugging purpose +# set -o xtrace # Uncomment this line for debugging purposes # Load libraries . /opt/bitnami/scripts/librepmgr.sh diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/opt/bitnami/scripts/postgresql-env.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/opt/bitnami/scripts/postgresql-env.sh index 93be3898310a..4e96a0b481a3 100644 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/opt/bitnami/scripts/postgresql-env.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/opt/bitnami/scripts/postgresql-env.sh @@ -383,7 +383,6 @@ export REPMGR_PRIMARY_ROLE_LOCK_FILE_NAME="$REPMGR_LOCK_DIR/master.lock" export REPMGR_STANDBY_ROLE_LOCK_FILE_NAME="$REPMGR_LOCK_DIR/standby.lock" export REPMGR_BIN_DIR="$REPMGR_BASE_DIR/bin" export REPMGR_CONF_FILE="$REPMGR_CONF_DIR/repmgr.conf" -export REPMGR_PID_FILE="$REPMGR_TMP_DIR/repmgr.pid" export REPMGR_DATA_DIR="${REPMGR_DATA_DIR:-${REPMGR_VOLUME_DIR}/repmgr/data}" # Settings (Replication Manager) diff --git a/bitnami/postgresql-repmgr/13/debian-11/rootfs/opt/bitnami/scripts/postgresql-repmgr/run.sh b/bitnami/postgresql-repmgr/13/debian-11/rootfs/opt/bitnami/scripts/postgresql-repmgr/run.sh index 2ed8adad2db4..a95170502085 100755 --- a/bitnami/postgresql-repmgr/13/debian-11/rootfs/opt/bitnami/scripts/postgresql-repmgr/run.sh +++ b/bitnami/postgresql-repmgr/13/debian-11/rootfs/opt/bitnami/scripts/postgresql-repmgr/run.sh @@ -5,7 +5,7 @@ set -o errexit set -o nounset set -o pipefail -# set -o xtrace # Uncomment this line for debugging purpose +# set -o xtrace # Uncomment this line for debugging purposes # Load libraries . /opt/bitnami/scripts/liblog.sh @@ -15,7 +15,7 @@ set -o pipefail # Load PostgreSQL & repmgr environment variables . /opt/bitnami/scripts/postgresql-env.sh -readonly repmgr_flags=("--pid-file=$REPMGR_PID_FILE" "-f" "$REPMGR_CONF_FILE" "--daemonize=false") +readonly repmgr_flags=("-f" "$REPMGR_CONF_FILE" "--daemonize=false") readonly repmgr_cmd=$(command -v repmgrd) postgresql_start_bg true diff --git a/bitnami/postgresql-repmgr/README.md b/bitnami/postgresql-repmgr/README.md index 99653e2c133b..a011ab077090 100644 --- a/bitnami/postgresql-repmgr/README.md +++ b/bitnami/postgresql-repmgr/README.md @@ -48,10 +48,10 @@ Learn more about the Bitnami tagging policy and the difference between rolling t * [`14`, `14-debian-11`, `14.5.0`, `14.5.0-debian-11-r14`, `latest` (14/debian-11/Dockerfile)](https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr/14/debian-11/Dockerfile) -* [`13`, `13-debian-11`, `13.8.0`, `13.8.0-debian-11-r15` (13/debian-11/Dockerfile)](https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr/13/debian-11/Dockerfile) +* [`13`, `13-debian-11`, `13.8.0`, `13.8.0-debian-11-r16` (13/debian-11/Dockerfile)](https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr/13/debian-11/Dockerfile) * [`12`, `12-debian-11`, `12.12.0`, `12.12.0-debian-11-r16` (12/debian-11/Dockerfile)](https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr/12/debian-11/Dockerfile) * [`11`, `11-debian-11`, `11.17.0`, `11.17.0-debian-11-r16` (11/debian-11/Dockerfile)](https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr/11/debian-11/Dockerfile) -* [`10`, `10-debian-11`, `10.22.0`, `10.22.0-debian-11-r15` (10/debian-11/Dockerfile)](https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr/10/debian-11/Dockerfile) +* [`10`, `10-debian-11`, `10.22.0`, `10.22.0-debian-11-r16` (10/debian-11/Dockerfile)](https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr/10/debian-11/Dockerfile) Subscribe to project updates by watching the [bitnami/containers GitHub repo](https://github.com/bitnami/containers).