mirror of
https://github.com/bitnami/containers.git
synced 2026-02-20 14:57:23 +08:00
8.0.28-debian-10-r42 release
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user