[bitnami/postgresql-repmgr] Release 10.22.0-debian-11-r16 (#6699)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot
2022-09-17 18:26:49 +00:00
committed by GitHub
parent 2a81aa62e9
commit 3c74e1b240
14 changed files with 21 additions and 22 deletions
@@ -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="10.22.0-debian-11-r15" \
org.opencontainers.image.ref.name="10.22.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 libcrypt1 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-10.22.0-8-linux-${OS_ARCH}-debian-11.tar.gz ]; then \
curl -SsLf https://downloads.bitnami.com/files/stacksmith/postgresql-repmgr-10.22.0-8-linux-${OS_ARCH}-debian-11.tar.gz -O ; \
curl -SsLf https://downloads.bitnami.com/files/stacksmith/postgresql-repmgr-10.22.0-8-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \
if [ ! -f postgresql-repmgr-10.22.0-9-linux-${OS_ARCH}-debian-11.tar.gz ]; then \
curl -SsLf https://downloads.bitnami.com/files/stacksmith/postgresql-repmgr-10.22.0-9-linux-${OS_ARCH}-debian-11.tar.gz -O ; \
curl -SsLf https://downloads.bitnami.com/files/stacksmith/postgresql-repmgr-10.22.0-9-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \
fi && \
sha256sum -c postgresql-repmgr-10.22.0-8-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \
tar -zxf postgresql-repmgr-10.22.0-8-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \
rm -rf postgresql-repmgr-10.22.0-8-linux-${OS_ARCH}-debian-11.tar.gz postgresql-repmgr-10.22.0-8-linux-${OS_ARCH}-debian-11.tar.gz.sha256
sha256sum -c postgresql-repmgr-10.22.0-9-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \
tar -zxf postgresql-repmgr-10.22.0-9-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \
rm -rf postgresql-repmgr-10.22.0-9-linux-${OS_ARCH}-debian-11.tar.gz postgresql-repmgr-10.22.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 ; \
@@ -8,9 +8,9 @@
},
"postgresql-repmgr": {
"arch": "amd64",
"digest": "8fe320dfe1995de107c24ebac3270a1924229d5f9d0b56553932ce15d35f8f32",
"digest": "6c12410a5f1a4145c97d10a820bde0091294807243bc5ca1311a31b43df76eb7",
"distro": "debian-11",
"type": "NAMI",
"version": "10.22.0-8"
"version": "10.22.0-9"
}
}
@@ -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
@@ -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..."
@@ -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")"
@@ -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..."
@@ -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..."
@@ -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"
@@ -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"
@@ -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"
@@ -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"
@@ -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
@@ -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)
@@ -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