12.10.0-debian-10-r26 release
This commit is contained in:
parent
276a32e438
commit
d61b522f0a
|
|
@ -12,7 +12,7 @@ ARG WITH_ALL_LOCALES="no"
|
|||
COPY prebuildfs /
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages acl ca-certificates curl gzip libbsd0 libbz2-1.0 libc6 libedit2 libffi6 libgcc1 libgmp10 libgnutls30 libhogweed4 libicu63 libidn2-0 libldap-2.4-2 liblz4-1 liblzma5 libncurses6 libnettle6 libp11-kit0 libpcre3 libreadline7 libsasl2-2 libsqlite3-0 libssl1.1 libstdc++6 libtasn1-6 libtinfo6 libunistring2 libuuid1 libxml2 libxslt1.1 libzstd1 locales procps tar zlib1g
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "postgresql" "12.10.0-7" --checksum 597368d4a6dc663c2e53fbff280ebd936e3ebb1f61d5aae87baf18836004f1da
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "postgresql" "12.10.0-8" --checksum 597368d4a6dc663c2e53fbff280ebd936e3ebb1f61d5aae87baf18836004f1da
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-7" --checksum d6280b6f647a62bf6edc74dc8e526bfff63ddd8067dcb8540843f47203d9ccf1
|
||||
RUN apt-get update && apt-get upgrade -y && \
|
||||
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
||||
|
|
@ -27,7 +27,7 @@ COPY rootfs /
|
|||
RUN /opt/bitnami/scripts/postgresql/postunpack.sh
|
||||
RUN /opt/bitnami/scripts/locales/add-extra-locales.sh
|
||||
ENV BITNAMI_APP_NAME="postgresql" \
|
||||
BITNAMI_IMAGE_VERSION="12.10.0-debian-10-r25" \
|
||||
BITNAMI_IMAGE_VERSION="12.10.0-debian-10-r26" \
|
||||
LANG="en_US.UTF-8" \
|
||||
LANGUAGE="en_US:en" \
|
||||
NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \
|
||||
|
|
|
|||
|
|
@ -11,6 +11,6 @@
|
|||
"digest": "597368d4a6dc663c2e53fbff280ebd936e3ebb1f61d5aae87baf18836004f1da",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "12.10.0-7"
|
||||
"version": "12.10.0-8"
|
||||
}
|
||||
}
|
||||
|
|
@ -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[@]}")
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,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-r25`, `latest` (14/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/14.2.0-debian-10-r25/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/blob/13.6.0-debian-10-r25/13/debian-10/Dockerfile)
|
||||
* [`12`, `12-debian-10`, `12.10.0`, `12.10.0-debian-10-r25` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/12.10.0-debian-10-r25/12/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/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/blob/11.15.0-debian-10-r25/11/debian-10/Dockerfile)
|
||||
* [`10`, `10-debian-10`, `10.20.0`, `10.20.0-debian-10-r25` (10/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/10.20.0-debian-10-r25/10/debian-10/Dockerfile)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue