From 671fc12e6de8fc270d0bd9a06acc0c1e5cb959d5 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Thu, 17 Mar 2022 23:11:32 +0000 Subject: [PATCH] 8.0.28-debian-10-r42 release --- bitnami/mysql/8.0/debian-10/Dockerfile | 3 +-- .../8.0/debian-10/rootfs/opt/bitnami/scripts/libmysql.sh | 2 +- bitnami/mysql/README.md | 6 +----- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/bitnami/mysql/8.0/debian-10/Dockerfile b/bitnami/mysql/8.0/debian-10/Dockerfile index 342c4b53adbe..69e64bde1cae 100644 --- a/bitnami/mysql/8.0/debian-10/Dockerfile +++ b/bitnami/mysql/8.0/debian-10/Dockerfile @@ -16,12 +16,11 @@ RUN apt-get update && apt-get upgrade -y && \ rm -r /var/lib/apt/lists /var/cache/apt/archives RUN chmod g+rwX /opt/bitnami RUN mkdir /docker-entrypoint-initdb.d -RUN mkdir /docker-entrypoint-startdb.d COPY rootfs / RUN /opt/bitnami/scripts/mysql/postunpack.sh ENV BITNAMI_APP_NAME="mysql" \ - BITNAMI_IMAGE_VERSION="8.0.28-debian-10-r41" \ + BITNAMI_IMAGE_VERSION="8.0.28-debian-10-r42" \ PATH="/opt/bitnami/common/bin:/opt/bitnami/mysql/bin:/opt/bitnami/mysql/sbin:$PATH" EXPOSE 3306 diff --git a/bitnami/mysql/8.0/debian-10/rootfs/opt/bitnami/scripts/libmysql.sh b/bitnami/mysql/8.0/debian-10/rootfs/opt/bitnami/scripts/libmysql.sh index fd8049247dd6..3b1ba0277d54 100644 --- a/bitnami/mysql/8.0/debian-10/rootfs/opt/bitnami/scripts/libmysql.sh +++ b/bitnami/mysql/8.0/debian-10/rootfs/opt/bitnami/scripts/libmysql.sh @@ -331,7 +331,7 @@ EOF # None ######################### mysql_custom_scripts() { - if [[ -n $(find /docker-entrypoint-"$1"db.d/ -type f -regex ".*\.\(sh\|sql\|sql.gz\)") ]] && { [[ ! -f "$DB_DATA_DIR/.user_scripts_initialized" ]] || [[ $1 = start ]]; } then + if [[ -n $(find /docker-entrypoint-"$1"db.d/ -type f -regex ".*\.\(sh\|sql\|sql.gz\)") ]] && { [[ ! -f "$DB_DATA_DIR/.user_scripts_initialized" ]] || [[ $1 == start ]]; } then info "Loading user's custom files from /docker-entrypoint-$1db.d"; for f in /docker-entrypoint-"$1"db.d/*; do debug "Executing $f" diff --git a/bitnami/mysql/README.md b/bitnami/mysql/README.md index 22d28b6bc806..974e8d055409 100644 --- a/bitnami/mysql/README.md +++ b/bitnami/mysql/README.md @@ -50,7 +50,7 @@ Non-root container images add an extra layer of security and are generally recom 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/). -* [`8.0`, `8.0-debian-10`, `8.0.28`, `8.0.28-debian-10-r41`, `latest` (8.0/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.28-debian-10-r41/8.0/debian-10/Dockerfile) +* [`8.0`, `8.0-debian-10`, `8.0.28`, `8.0.28-debian-10-r42`, `latest` (8.0/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.28-debian-10-r42/8.0/debian-10/Dockerfile) * [`5.7`, `5.7-debian-10`, `5.7.37`, `5.7.37-debian-10-r57` (5.7/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/5.7.37-debian-10-r57/5.7/debian-10/Dockerfile) Subscribe to project updates by watching the [bitnami/mysql GitHub repo](https://github.com/bitnami/bitnami-docker-mysql). @@ -189,10 +189,6 @@ Take into account those scripts are treated differently depending on the extensi > NOTE: If you are importing large databases, it is recommended to import them as `.sql` instead of `.sql.gz`, as the latter one needs to be decompressed on the fly and not allowing for additional optimizations to import large files. -### Running scripts on start - -Same semantics as [Initializing a new instance](#initializing-a-new-instance), except these scripts will always run (after `/docker-entrypoint-initdb.d/` scripts, if they exist.) The file directory to place your start scripts is: `/docker-entrypoint-startdb.d`. - ### Setting the root password on first run The root user and password can easily be setup with the Bitnami MySQL Docker image using the following environment variables: