diff --git a/bitnami/mysql/5.7/debian-11/Dockerfile b/bitnami/mysql/5.7/debian-11/Dockerfile index e45cb0ede687..6781e97911e7 100644 --- a/bitnami/mysql/5.7/debian-11/Dockerfile +++ b/bitnami/mysql/5.7/debian-11/Dockerfile @@ -3,10 +3,10 @@ FROM docker.io/bitnami/minideb:bullseye ARG TARGETARCH LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \ - org.opencontainers.image.created="2023-03-12T16:09:00Z" \ + org.opencontainers.image.created="2023-03-15T18:09:38Z" \ org.opencontainers.image.description="Application packaged by VMware, Inc" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="5.7.41-debian-11-r16" \ + org.opencontainers.image.ref.name="5.7.41-debian-11-r17" \ org.opencontainers.image.title="mysql" \ org.opencontainers.image.vendor="VMware, Inc." \ org.opencontainers.image.version="5.7.41" diff --git a/bitnami/mysql/5.7/debian-11/rootfs/opt/bitnami/scripts/libmysql.sh b/bitnami/mysql/5.7/debian-11/rootfs/opt/bitnami/scripts/libmysql.sh index ad659fc32820..3368d8bb75f9 100644 --- a/bitnami/mysql/5.7/debian-11/rootfs/opt/bitnami/scripts/libmysql.sh +++ b/bitnami/mysql/5.7/debian-11/rootfs/opt/bitnami/scripts/libmysql.sh @@ -723,6 +723,11 @@ mysql_stop() { mysql_install_db() { local command="${DB_BIN_DIR}/mysql_install_db" local -a args=("--defaults-file=${DB_CONF_FILE}" "--basedir=${DB_BASE_DIR}" "--datadir=${DB_DATA_DIR}") + + # Add flags specified via the 'DB_EXTRA_FLAGS' environment variable + read -r -a db_extra_flags <<< "$(mysql_extra_flags)" + [[ "${#db_extra_flags[@]}" -gt 0 ]] && args+=("${db_extra_flags[@]}") + am_i_root && args=("${args[@]}" "--user=$DB_DAEMON_USER") if [[ "$DB_FLAVOR" = "mariadb" ]]; then args+=("--auth-root-authentication-method=normal") diff --git a/bitnami/mysql/README.md b/bitnami/mysql/README.md index 252f4a8354d7..dd2037070d95 100644 --- a/bitnami/mysql/README.md +++ b/bitnami/mysql/README.md @@ -5,7 +5,6 @@ > MySQL is a fast, reliable, scalable, and easy to use open source relational database system. Designed to handle mission-critical, heavy-load production applications. [Overview of MySQL](http://www.mysql.com) - Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement. ## TL;DR