8.0.17-debian-9-r52 release

This commit is contained in:
Bitnami Bot 2019-09-16 19:07:22 +00:00
parent 1dffbdf11a
commit 342bed5a1b
3 changed files with 14 additions and 10 deletions

View File

@ -15,7 +15,7 @@ RUN mkdir /docker-entrypoint-initdb.d
COPY rootfs /
RUN /postunpack.sh
ENV BITNAMI_APP_NAME="mysql" \
BITNAMI_IMAGE_VERSION="8.0.17-debian-9-r51" \
BITNAMI_IMAGE_VERSION="8.0.17-debian-9-r52" \
NAMI_PREFIX="/.nami" \
PATH="/opt/bitnami/mysql/bin:/opt/bitnami/mysql/sbin:$PATH"

View File

@ -297,14 +297,19 @@ EOF
#########################
mysql_validate() {
info "Validating settings in MYSQL_*/MARIADB_* env vars.."
local error_code=0
# Auxiliary functions
print_validation_error() {
error "$1"
error_code=1
}
empty_password_enabled_warn() {
warn "You set the environment variable ALLOW_EMPTY_PASSWORD=${ALLOW_EMPTY_PASSWORD}. For safety reasons, do not use this flag in a production environment."
}
empty_password_error() {
error "The $1 environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow the container to be started with blank passwords. This is recommended only for development."
exit 1
print_validation_error "The $1 environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow the container to be started with blank passwords. This is recommended only for development."
}
if [[ -n "$DB_REPLICATION_MODE" ]]; then
@ -319,8 +324,7 @@ mysql_validate() {
empty_password_error "$(get_env_var ROOT_PASSWORD)"
fi
if (( ${#DB_ROOT_PASSWORD} > 32 )); then
error "The password can not be longer than 32 characters. Set the environment variable $(get_env_var ROOT_PASSWORD) with a shorter value (currently ${#DB_ROOT_PASSWORD} characters)"
exit 1
print_validation_error "The password can not be longer than 32 characters. Set the environment variable $(get_env_var ROOT_PASSWORD) with a shorter value (currently ${#DB_ROOT_PASSWORD} characters)"
fi
if [[ -n "$DB_USER" ]] && [[ -z "$DB_PASSWORD" ]]; then
empty_password_error "$(get_env_var PASSWORD)"
@ -328,12 +332,10 @@ mysql_validate() {
fi
elif [[ "$DB_REPLICATION_MODE" = "slave" ]]; then
if [[ -z "$DB_MASTER_HOST" ]]; then
error "Slave replication mode chosen without setting the environment variable $(get_env_var MASTER_HOST). Use it to indicate where the Master node is running"
exit 1
print_validation_error "Slave replication mode chosen without setting the environment variable $(get_env_var MASTER_HOST). Use it to indicate where the Master node is running"
fi
else
error "Invalid replication mode. Available options are 'master/slave'"
exit 1
print_validation_error "Invalid replication mode. Available options are 'master/slave'"
fi
else
if is_boolean_yes "$ALLOW_EMPTY_PASSWORD"; then
@ -347,6 +349,8 @@ mysql_validate() {
fi
fi
fi
[[ "$error_code" -eq 0 ]] || exit "$error_code"
}
########################

View File

@ -47,7 +47,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t
* [`8.0-ol-7`, `8.0.17-ol-7-r54` (8.0/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.17-ol-7-r54/8.0/ol-7/Dockerfile)
* [`8.0-debian-9`, `8.0.17-debian-9-r51`, `8.0`, `8.0.17`, `8.0.17-r51`, `latest` (8.0/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.17-debian-9-r51/8.0/debian-9/Dockerfile)
* [`8.0-debian-9`, `8.0.17-debian-9-r52`, `8.0`, `8.0.17`, `8.0.17-r52`, `latest` (8.0/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.17-debian-9-r52/8.0/debian-9/Dockerfile)
* [`5.7-ol-7`, `5.7.27-ol-7-r62` (5.7/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/5.7.27-ol-7-r62/5.7/ol-7/Dockerfile)
* [`5.7-debian-9`, `5.7.27-debian-9-r60`, `5.7`, `5.7.27`, `5.7.27-r60` (5.7/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/5.7.27-debian-9-r60/5.7/debian-9/Dockerfile)