mirror of
https://github.com/bitnami/containers.git
synced 2026-02-21 23:57:21 +08:00
13.6.0-debian-10-r26 release
This commit is contained in:
@@ -24,7 +24,7 @@ COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/postgresql-repmgr/postunpack.sh
|
||||
RUN /opt/bitnami/scripts/locales/add-extra-locales.sh
|
||||
ENV BITNAMI_APP_NAME="postgresql-repmgr" \
|
||||
BITNAMI_IMAGE_VERSION="13.6.0-debian-10-r25" \
|
||||
BITNAMI_IMAGE_VERSION="13.6.0-debian-10-r26" \
|
||||
LANG="en_US.UTF-8" \
|
||||
LANGUAGE="en_US:en" \
|
||||
NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \
|
||||
|
||||
@@ -910,9 +910,11 @@ postgresql_slave_init_db() {
|
||||
#########################
|
||||
postgresql_configure_recovery() {
|
||||
info "Setting up streaming replication slave..."
|
||||
|
||||
local -r escaped_password="${POSTGRESQL_REPLICATION_PASSWORD//\&/\\&}"
|
||||
local -r psql_major_version="$(postgresql_get_major_version)"
|
||||
if ((psql_major_version >= 12)); then
|
||||
postgresql_set_property "primary_conninfo" "host=${POSTGRESQL_MASTER_HOST} port=${POSTGRESQL_MASTER_PORT_NUMBER} user=${POSTGRESQL_REPLICATION_USER} password=${POSTGRESQL_REPLICATION_PASSWORD} application_name=${POSTGRESQL_CLUSTER_APP_NAME}" "$POSTGRESQL_CONF_FILE"
|
||||
postgresql_set_property "primary_conninfo" "host=${POSTGRESQL_MASTER_HOST} port=${POSTGRESQL_MASTER_PORT_NUMBER} user=${POSTGRESQL_REPLICATION_USER} password=${escaped_password} application_name=${POSTGRESQL_CLUSTER_APP_NAME}" "$POSTGRESQL_CONF_FILE"
|
||||
postgresql_set_property "promote_trigger_file" "/tmp/postgresql.trigger.${POSTGRESQL_MASTER_PORT_NUMBER}" "$POSTGRESQL_CONF_FILE"
|
||||
touch "$POSTGRESQL_DATA_DIR"/standby.signal
|
||||
else
|
||||
@@ -920,7 +922,7 @@ postgresql_configure_recovery() {
|
||||
chmod 600 "$POSTGRESQL_RECOVERY_FILE"
|
||||
am_i_root && chown "$POSTGRESQL_DAEMON_USER:$POSTGRESQL_DAEMON_GROUP" "$POSTGRESQL_RECOVERY_FILE"
|
||||
postgresql_set_property "standby_mode" "on" "$POSTGRESQL_RECOVERY_FILE"
|
||||
postgresql_set_property "primary_conninfo" "host=${POSTGRESQL_MASTER_HOST} port=${POSTGRESQL_MASTER_PORT_NUMBER} user=${POSTGRESQL_REPLICATION_USER} password=${POSTGRESQL_REPLICATION_PASSWORD} application_name=${POSTGRESQL_CLUSTER_APP_NAME}" "$POSTGRESQL_RECOVERY_FILE"
|
||||
postgresql_set_property "primary_conninfo" "host=${POSTGRESQL_MASTER_HOST} port=${POSTGRESQL_MASTER_PORT_NUMBER} user=${POSTGRESQL_REPLICATION_USER} password=${escaped_password} application_name=${POSTGRESQL_CLUSTER_APP_NAME}" "$POSTGRESQL_RECOVERY_FILE"
|
||||
postgresql_set_property "trigger_file" "/tmp/postgresql.trigger.${POSTGRESQL_MASTER_PORT_NUMBER}" "$POSTGRESQL_RECOVERY_FILE"
|
||||
fi
|
||||
}
|
||||
@@ -1045,7 +1047,7 @@ postgresql_execute_print_output() {
|
||||
local opts
|
||||
read -r -a opts <<<"${@:4}"
|
||||
|
||||
local args=("-U" "$user" "-p" "$POSTGRESQL_PORT_NUMBER")
|
||||
local args=("-U" "$user" "-p" "${POSTGRESQL_PORT_NUMBER:-5432}")
|
||||
[[ -n "$db" ]] && args+=("-d" "$db")
|
||||
[[ "${#opts[@]}" -gt 0 ]] && args+=("${opts[@]}")
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t
|
||||
|
||||
|
||||
* [`14`, `14-debian-10`, `14.2.0`, `14.2.0-debian-10-r23`, `latest` (14/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/14.2.0-debian-10-r23/14/debian-10/Dockerfile)
|
||||
* [`13`, `13-debian-10`, `13.6.0`, `13.6.0-debian-10-r25` (13/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/13.6.0-debian-10-r25/13/debian-10/Dockerfile)
|
||||
* [`13`, `13-debian-10`, `13.6.0`, `13.6.0-debian-10-r26` (13/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/13.6.0-debian-10-r26/13/debian-10/Dockerfile)
|
||||
* [`12`, `12-debian-10`, `12.10.0`, `12.10.0-debian-10-r26` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/12.10.0-debian-10-r26/12/debian-10/Dockerfile)
|
||||
* [`11`, `11-debian-10`, `11.15.0`, `11.15.0-debian-10-r25` (11/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/11.15.0-debian-10-r25/11/debian-10/Dockerfile)
|
||||
* [`10`, `10-debian-10`, `10.20.0`, `10.20.0-debian-10-r29` (10/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/10.20.0-debian-10-r29/10/debian-10/Dockerfile)
|
||||
|
||||
Reference in New Issue
Block a user