mirror of
https://github.com/bitnami/containers.git
synced 2026-03-23 14:57:41 +08:00
10.3.31-debian-10-r94 release
This commit is contained in:
@@ -18,7 +18,7 @@ RUN mkdir /docker-entrypoint-initdb.d
|
||||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/mariadb-galera/postunpack.sh
|
||||
ENV BITNAMI_APP_NAME="mariadb-galera" \
|
||||
BITNAMI_IMAGE_VERSION="10.3.31-debian-10-r93" \
|
||||
BITNAMI_IMAGE_VERSION="10.3.31-debian-10-r94" \
|
||||
PATH="/opt/bitnami/common/bin:/opt/bitnami/mariadb/bin:/opt/bitnami/mariadb/sbin:$PATH"
|
||||
|
||||
EXPOSE 3306 4444 4567 4568
|
||||
|
||||
@@ -13,6 +13,7 @@ services:
|
||||
environment:
|
||||
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
- MARIADB_GALERA_CLUSTER_ADDRESS=gcomm://
|
||||
healthcheck:
|
||||
test: ['CMD', '/opt/bitnami/scripts/mariadb-galera/healthcheck.sh']
|
||||
interval: 15s
|
||||
|
||||
@@ -178,13 +178,13 @@ web_server_reload() {
|
||||
# Apache-specific flags:
|
||||
# --apache-additional-configuration - Additional vhost configuration (no default)
|
||||
# --apache-before-vhost-configuration - Configuration to add before the <VirtualHost> directive (no default)
|
||||
# --apache-allow-override - Whether to allow .htaccess files (only allowed when --move-htaccess is set to 'no')
|
||||
# --apache-allow-override - Whether to allow .htaccess files (only allowed when --move-htaccess is set to 'no' and type is not defined)
|
||||
# --apache-extra-directory-configuration - Extra configuration for the document root directory
|
||||
# --apache-proxy-address - Address where to proxy requests
|
||||
# --apache-proxy-configuration - Extra configuration for the proxy
|
||||
# --apache-proxy-http-configuration - Extra configuration for the proxy HTTP vhost
|
||||
# --apache-proxy-https-configuration - Extra configuration for the proxy HTTPS vhost
|
||||
# --apache-move-htaccess - Move .htaccess files to a common place so they can be loaded during Apache startup
|
||||
# --apache-move-htaccess - Move .htaccess files to a common place so they can be loaded during Apache startup (only allowed when type is not defined)
|
||||
# NGINX-specific flags:
|
||||
# --nginx-additional-configuration - Additional server block configuration (no default)
|
||||
# --nginx-external-configuration - Configuration external to server block (no default)
|
||||
|
||||
@@ -94,7 +94,7 @@ get_galera_cluster_bootstrap_value() {
|
||||
# - Bootstrapping may happen implicitly when "MARIADB_GALERA_CLUSTER_BOOTSTRAP" is undefined.
|
||||
# This is mostly expected to happen when running in Kubernetes and the Helm Chart value "galera.bootstrap.bootstrapFromNode" is not set.
|
||||
# When the node is not marked to bootstrap, the node will join an existing cluster.
|
||||
cluster_bootstrap="no" # initial value
|
||||
cluster_bootstrap="no" # initial value
|
||||
if is_boolean_yes "$DB_GALERA_FORCE_SAFETOBOOTSTRAP"; then
|
||||
cluster_bootstrap="yes"
|
||||
elif ! is_boolean_yes "$(get_previous_boot)"; then
|
||||
@@ -135,9 +135,14 @@ should_bootstrap_implicitly() {
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
# Yes or no
|
||||
# None
|
||||
#########################
|
||||
has_galera_cluster_other_nodes() {
|
||||
# - This function works on a best-effort basis and only works reliably with Kubernetes pods.
|
||||
# - We are using `getent hosts` to check for the availability of other hosts, but this may not work when the hosts are defined as IP addresses.
|
||||
# In some environments, there may be no reverse DNS lookup for IPs, so this function may wrongly return "no".
|
||||
# It should work fine if the hosts are defined as hostnames of Services (usually of a StatefulSet) inside a Kubernetes environment.
|
||||
|
||||
local local_ip
|
||||
local node_ip
|
||||
local cluster_address
|
||||
@@ -255,7 +260,7 @@ mysql_validate() {
|
||||
fi
|
||||
|
||||
if [[ -n "$DB_GALERA_FORCE_SAFETOBOOTSTRAP" ]] && ! is_yes_no_value "$DB_GALERA_FORCE_SAFETOBOOTSTRAP"; then
|
||||
print_validation_error "The allowed values for MARIA_GALERA_FORCE_SAFETOBOOTSTRAP are yes or no."
|
||||
print_validation_error "The allowed values for $(get_env_var GALERA_FORCE_SAFETOBOOTSTRAP) are yes or no."
|
||||
fi
|
||||
|
||||
if [[ -z "$DB_GALERA_CLUSTER_NAME" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user