8.0.11-debian-9-r1 release
This commit is contained in:
parent
13c8629ed0
commit
abfc509abd
|
|
@ -0,0 +1,30 @@
|
||||||
|
FROM bitnami/minideb-extras:stretch-r70
|
||||||
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||||
|
|
||||||
|
# Install required system packages and dependencies
|
||||||
|
RUN install_packages libaio1 libc6 libgcc1 libncurses5 libsasl2-2 libssl1.1 libstdc++6 libtinfo5 zlib1g
|
||||||
|
RUN bitnami-pkg unpack mysql-8.0.11-0 --checksum 10087cd0218c8b5ffa9be1dc7f5ad770392b1882334736b350de2d75296940fb
|
||||||
|
|
||||||
|
COPY rootfs /
|
||||||
|
ENV ALLOW_EMPTY_PASSWORD="no" \
|
||||||
|
BITNAMI_APP_NAME="mysql" \
|
||||||
|
BITNAMI_IMAGE_VERSION="8.0.11-debian-9-r1" \
|
||||||
|
MYSQL_DATABASE="" \
|
||||||
|
MYSQL_MASTER_HOST="" \
|
||||||
|
MYSQL_MASTER_PORT_NUMBER="" \
|
||||||
|
MYSQL_MASTER_ROOT_PASSWORD="" \
|
||||||
|
MYSQL_MASTER_ROOT_USER="" \
|
||||||
|
MYSQL_PASSWORD="" \
|
||||||
|
MYSQL_PORT_NUMBER="3306" \
|
||||||
|
MYSQL_REPLICATION_MODE="" \
|
||||||
|
MYSQL_REPLICATION_PASSWORD="" \
|
||||||
|
MYSQL_REPLICATION_USER="" \
|
||||||
|
MYSQL_ROOT_PASSWORD="" \
|
||||||
|
MYSQL_ROOT_USER="root" \
|
||||||
|
MYSQL_USER="" \
|
||||||
|
PATH="/opt/bitnami/mysql/bin:/opt/bitnami/mysql/sbin:$PATH"
|
||||||
|
|
||||||
|
EXPOSE 3306
|
||||||
|
|
||||||
|
ENTRYPOINT ["/app-entrypoint.sh"]
|
||||||
|
CMD ["nami","start","--foreground","mysql"]
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
mysql:
|
||||||
|
image: 'bitnami/mysql:8.0'
|
||||||
|
ports:
|
||||||
|
- '3306:3306'
|
||||||
|
volumes:
|
||||||
|
- 'mysql_data:/bitnami'
|
||||||
|
environment:
|
||||||
|
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
||||||
|
- ALLOW_EMPTY_PASSWORD=yes
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mysql_data:
|
||||||
|
driver: local
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
. /opt/bitnami/base/functions
|
||||||
|
. /opt/bitnami/base/helpers
|
||||||
|
|
||||||
|
print_welcome_page
|
||||||
|
|
||||||
|
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
|
||||||
|
. /init.sh
|
||||||
|
nami_initialize mysql
|
||||||
|
info "Starting mysql... "
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec tini -- "$@"
|
||||||
|
|
@ -0,0 +1,51 @@
|
||||||
|
##
|
||||||
|
## @brief Helper function to show an error when a password is empty and exit
|
||||||
|
## param $1 Input name
|
||||||
|
##
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
##
|
||||||
|
## @brief Helper function to show a warning when the ALLOW_EMPTY_PASSWORD flag is enabled
|
||||||
|
##
|
||||||
|
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."
|
||||||
|
}
|
||||||
|
|
||||||
|
##
|
||||||
|
## @brief Helper function to check deprecated environment variables and warn about them
|
||||||
|
## param $1 Deprecated environment variable to check
|
||||||
|
## param $2 Suggested environment variable to use
|
||||||
|
##
|
||||||
|
check_for_deprecated_env() {
|
||||||
|
if [[ -n "${!1}" ]]; then
|
||||||
|
warn "The environment variable $1 is deprecated and will be removed in a future. Please use $2 instead"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Check env vars to deprecate
|
||||||
|
check_for_deprecated_env "MYSQL_MASTER_USER" "MYSQL_MASTER_ROOT_USER"
|
||||||
|
export MYSQL_MASTER_ROOT_USER=${MYSQL_MASTER_USER:-${MYSQL_MASTER_ROOT_USER}}
|
||||||
|
check_for_deprecated_env "MYSQL_MASTER_PASSWORD" "MYSQL_MASTER_ROOT_PASSWORD"
|
||||||
|
export MYSQL_MASTER_ROOT_PASSWORD=${MYSQL_MASTER_PASSWORD:-${MYSQL_MASTER_ROOT_PASSWORD}}
|
||||||
|
|
||||||
|
# Validate passwords
|
||||||
|
if [[ "$ALLOW_EMPTY_PASSWORD" =~ ^(yes|Yes|YES)$ ]]; then
|
||||||
|
empty_password_enabled_warn
|
||||||
|
elif [[ "$MYSQL_REPLICATION_MODE" != "slave" ]]; then
|
||||||
|
# Root user
|
||||||
|
if [[ -z "$MYSQL_ROOT_PASSWORD" ]]; then
|
||||||
|
empty_password_error MYSQL_ROOT_PASSWORD
|
||||||
|
fi
|
||||||
|
# Replication user
|
||||||
|
if [[ -n "$MYSQL_REPLICATION_USER" && -z "$MYSQL_REPLICATION_PASSWORD" ]]; then
|
||||||
|
empty_password_error MYSQL_REPLICATION_PASSWORD
|
||||||
|
fi
|
||||||
|
# Additional user creation
|
||||||
|
if [[ -n "$MYSQL_USER" && -z "$MYSQL_PASSWORD" ]]; then
|
||||||
|
empty_password_error MYSQL_PASSWORD
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"allowEmptyPassword": "{{$global.env.ALLOW_EMPTY_PASSWORD}}",
|
||||||
|
"database": "{{$global.env.MYSQL_DATABASE}}",
|
||||||
|
"masterHost": "{{$global.env.MYSQL_MASTER_HOST}}",
|
||||||
|
"masterPort": "{{$global.env.MYSQL_MASTER_PORT_NUMBER}}",
|
||||||
|
"masterRootPassword": "{{$global.env.MYSQL_MASTER_ROOT_PASSWORD}}",
|
||||||
|
"masterRootUser": "{{$global.env.MYSQL_MASTER_ROOT_USER}}",
|
||||||
|
"password": "{{$global.env.MYSQL_PASSWORD}}",
|
||||||
|
"port": "{{$global.env.MYSQL_PORT_NUMBER}}",
|
||||||
|
"replicationMode": "{{$global.env.MYSQL_REPLICATION_MODE}}",
|
||||||
|
"replicationPassword": "{{$global.env.MYSQL_REPLICATION_PASSWORD}}",
|
||||||
|
"replicationUser": "{{$global.env.MYSQL_REPLICATION_USER}}",
|
||||||
|
"rootPassword": "{{$global.env.MYSQL_ROOT_PASSWORD}}",
|
||||||
|
"rootUser": "{{$global.env.MYSQL_ROOT_USER}}",
|
||||||
|
"username": "{{$global.env.MYSQL_USER}}"
|
||||||
|
}
|
||||||
|
|
@ -30,7 +30,7 @@ $ docker-compose up -d
|
||||||
# Supported tags and respective `Dockerfile` links
|
# Supported tags and respective `Dockerfile` links
|
||||||
|
|
||||||
* [`8.0-ol-7`, `8.0.11-ol-7-r12` (8.0/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.11-ol-7-r12/8.0/ol-7/Dockerfile)
|
* [`8.0-ol-7`, `8.0.11-ol-7-r12` (8.0/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.11-ol-7-r12/8.0/ol-7/Dockerfile)
|
||||||
* [`8.0-debian-9`, `8.0.11-debian-9-r0` (8.0/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.11-debian-9-r0/8.0/debian-9/Dockerfile)
|
* [`8.0-debian-9`, `8.0.11-debian-9-r1` (8.0/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.11-debian-9-r1/8.0/debian-9/Dockerfile)
|
||||||
* [`8.0-debian-8`, `8.0.11-debian-8-r0`, `8.0`, `8.0.11`, `8.0.11-r0` (8.0/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.11-debian-8-r0/8.0/Dockerfile)
|
* [`8.0-debian-8`, `8.0.11-debian-8-r0`, `8.0`, `8.0.11`, `8.0.11-r0` (8.0/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.11-debian-8-r0/8.0/Dockerfile)
|
||||||
* [`5.7-ol-7`, `5.7.22-ol-7-r13` (5.7/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/5.7.22-ol-7-r13/5.7/ol-7/Dockerfile)
|
* [`5.7-ol-7`, `5.7.22-ol-7-r13` (5.7/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/5.7.22-ol-7-r13/5.7/ol-7/Dockerfile)
|
||||||
* [`5.7-debian-9`, `5.7.22-debian-9-r1` (5.7/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/5.7.22-debian-9-r1/5.7/debian-9/Dockerfile)
|
* [`5.7-debian-9`, `5.7.22-debian-9-r1` (5.7/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/5.7.22-debian-9-r1/5.7/debian-9/Dockerfile)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue