14.0.0-debian-10-r21 release

This commit is contained in:
Bitnami Bot
2021-11-12 09:34:38 +00:00
parent f3c915be00
commit 1de2e626ed
3 changed files with 24 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ COPY rootfs /
RUN /opt/bitnami/scripts/postgresql-repmgr/postunpack.sh RUN /opt/bitnami/scripts/postgresql-repmgr/postunpack.sh
RUN /opt/bitnami/scripts/locales/add-extra-locales.sh RUN /opt/bitnami/scripts/locales/add-extra-locales.sh
ENV BITNAMI_APP_NAME="postgresql-repmgr" \ ENV BITNAMI_APP_NAME="postgresql-repmgr" \
BITNAMI_IMAGE_VERSION="14.0.0-debian-10-r20" \ BITNAMI_IMAGE_VERSION="14.0.0-debian-10-r21" \
LANG="en_US.UTF-8" \ LANG="en_US.UTF-8" \
LANGUAGE="en_US:en" \ LANGUAGE="en_US:en" \
NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \ NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \

View File

@@ -400,6 +400,24 @@ local all all trust
EOF EOF
} }
########################
# Check if a given configuration file was mounted externally
# Globals:
# REPMGR_MOUNTED_CONF_DIR
# Arguments:
# $1 - Filename
# Returns:
# 1 if the file was mounted externally, 0 otherwise
#########################
repmgr_is_file_external() {
local -r filename=$1
if [[ -d "$REPMGR_MOUNTED_CONF_DIR" ]] && [[ -f "$REPMGR_MOUNTED_CONF_DIR"/"$filename" ]]; then
return 0
else
return 1
fi
}
######################## ########################
# Prepare PostgreSQL default configuration # Prepare PostgreSQL default configuration
# Globals: # Globals:
@@ -418,12 +436,12 @@ repmgr_postgresql_configuration() {
debug "User injected custom configuration detected!" debug "User injected custom configuration detected!"
fi fi
ensure_dir_exists "$POSTGRESQL_MOUNTED_CONF_DIR" ensure_dir_exists "$POSTGRESQL_MOUNTED_CONF_DIR"
if [[ -f "${REPMGR_MOUNTED_CONF_DIR}/postgresql.conf" ]]; then if repmgr_is_file_external "postgresql.conf"; then
cp "${REPMGR_MOUNTED_CONF_DIR}/postgresql.conf" "${POSTGRESQL_MOUNTED_CONF_DIR}/postgresql.conf" cp "${REPMGR_MOUNTED_CONF_DIR}/postgresql.conf" "${POSTGRESQL_MOUNTED_CONF_DIR}/postgresql.conf"
else else
repmgr_inject_postgresql_configuration repmgr_inject_postgresql_configuration
fi fi
if [[ -f "${REPMGR_MOUNTED_CONF_DIR}/pg_hba.conf" ]]; then if repmgr_is_file_external "pg_hba.conf"; then
cp "${REPMGR_MOUNTED_CONF_DIR}/pg_hba.conf" "${POSTGRESQL_MOUNTED_CONF_DIR}/pg_hba.conf" cp "${REPMGR_MOUNTED_CONF_DIR}/pg_hba.conf" "${POSTGRESQL_MOUNTED_CONF_DIR}/pg_hba.conf"
else else
repmgr_inject_pghba_configuration repmgr_inject_pghba_configuration
@@ -683,7 +701,7 @@ repmgr_initialize() {
fi fi
fi fi
postgresql_initialize postgresql_initialize
if ! postgresql_is_file_external "postgresql.conf"; then if ! repmgr_is_file_external "postgresql.conf"; then
# Allow remote connections, required to register primary and standby nodes # Allow remote connections, required to register primary and standby nodes
postgresql_enable_remote_connections postgresql_enable_remote_connections
# Configure port and restrict access to PostgreSQL (MD5) # Configure port and restrict access to PostgreSQL (MD5)
@@ -692,7 +710,7 @@ repmgr_initialize() {
postgresql_configure_replication_parameters postgresql_configure_replication_parameters
postgresql_configure_fsync postgresql_configure_fsync
fi fi
if ! postgresql_is_file_external "pg_hba.conf"; then if ! repmgr_is_file_external "pg_hba.conf"; then
is_boolean_yes "$REPMGR_PGHBA_TRUST_ALL" || postgresql_restrict_pghba is_boolean_yes "$REPMGR_PGHBA_TRUST_ALL" || postgresql_restrict_pghba
fi fi
if [[ "$REPMGR_ROLE" = "primary" ]]; then if [[ "$REPMGR_ROLE" = "primary" ]]; then

View File

@@ -47,7 +47,7 @@ Bitnami containers can be used with [Kubeapps](https://kubeapps.com/) for deploy
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/). Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/).
* [`14`, `14-debian-10`, `14.0.0`, `14.0.0-debian-10-r20` (14/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/14.0.0-debian-10-r20/14/debian-10/Dockerfile) * [`14`, `14-debian-10`, `14.0.0`, `14.0.0-debian-10-r21` (14/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/14.0.0-debian-10-r21/14/debian-10/Dockerfile)
* [`13`, `13-debian-10`, `13.4.0`, `13.4.0-debian-10-r89` (13/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/13.4.0-debian-10-r89/13/debian-10/Dockerfile) * [`13`, `13-debian-10`, `13.4.0`, `13.4.0-debian-10-r89` (13/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/13.4.0-debian-10-r89/13/debian-10/Dockerfile)
* [`12`, `12-debian-10`, `12.8.0`, `12.8.0-debian-10-r93` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/12.8.0-debian-10-r93/12/debian-10/Dockerfile) * [`12`, `12-debian-10`, `12.8.0`, `12.8.0-debian-10-r93` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/12.8.0-debian-10-r93/12/debian-10/Dockerfile)
* [`11`, `11-debian-10`, `11.13.0`, `11.13.0-debian-10-r58`, `latest` (11/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/11.13.0-debian-10-r58/11/debian-10/Dockerfile) * [`11`, `11-debian-10`, `11.13.0`, `11.13.0-debian-10-r58`, `latest` (11/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/11.13.0-debian-10-r58/11/debian-10/Dockerfile)