5.7.34-debian-10-r0 release
This commit is contained in:
parent
3a538217f9
commit
96543bb578
|
|
@ -10,7 +10,7 @@ COPY prebuildfs /
|
|||
# Install required system packages and dependencies
|
||||
RUN install_packages acl ca-certificates curl gzip libaio1 libatomic1 libc6 libgcc1 libncurses6 libsasl2-2 libssl1.1 libstdc++6 libtinfo6 procps tar
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "ini-file" "1.3.0-2" --checksum d89528e5d733f34ae030984584659ff10a36370d40332bd8d41c047764d39cda
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mysql" "5.7.33-0" --checksum 442febe4db3d53bc7d44e83b6f924cb78c2487d8ae9fc29f53bf24d640a2535e
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mysql" "5.7.34-0" --checksum 683470d9dac8b7120f05b703abe3eebb83fc84655c81037307fea69718187352
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-2" --checksum 4d858ac600c38af8de454c27b7f65c0074ec3069880cb16d259a6e40a46bbc50
|
||||
RUN chmod g+rwX /opt/bitnami
|
||||
RUN mkdir /docker-entrypoint-initdb.d
|
||||
|
|
@ -18,7 +18,7 @@ RUN mkdir /docker-entrypoint-initdb.d
|
|||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/mysql/postunpack.sh
|
||||
ENV BITNAMI_APP_NAME="mysql" \
|
||||
BITNAMI_IMAGE_VERSION="5.7.33-debian-10-r85" \
|
||||
BITNAMI_IMAGE_VERSION="5.7.34-debian-10-r0" \
|
||||
PATH="/opt/bitnami/common/bin:/opt/bitnami/mysql/bin:/opt/bitnami/mysql/sbin:$PATH"
|
||||
|
||||
EXPOSE 3306
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@
|
|||
},
|
||||
"mysql": {
|
||||
"arch": "amd64",
|
||||
"digest": "442febe4db3d53bc7d44e83b6f924cb78c2487d8ae9fc29f53bf24d640a2535e",
|
||||
"digest": "683470d9dac8b7120f05b703abe3eebb83fc84655c81037307fea69718187352",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "5.7.33-0"
|
||||
"version": "5.7.34-0"
|
||||
}
|
||||
}
|
||||
|
|
@ -1007,15 +1007,16 @@ EOF
|
|||
mysql_ensure_user_has_database_privileges() {
|
||||
local -r user="${1:?user is required}"
|
||||
local -r database="${2:?db is required}"
|
||||
local -r db_host="${3:-}"
|
||||
local -r db_port="${4:-}"
|
||||
local -r privileges="${3:-all}"
|
||||
local -r db_host="${4:-}"
|
||||
local -r db_port="${5:-}"
|
||||
|
||||
local -a mysql_execute_cmd=("mysql_execute")
|
||||
[[ -n "$db_host" && -n "$db_port" ]] && mysql_execute_cmd=("mysql_remote_execute" "$db_host" "$db_port")
|
||||
|
||||
debug "Providing privileges to username $user on database $database"
|
||||
"${mysql_execute_cmd[@]}" "mysql" "$DB_ROOT_USER" "$DB_ROOT_PASSWORD" <<EOF
|
||||
grant all on \`$database\`.* to '$user'@'%';
|
||||
grant ${privileges} on \`${database}\`.* to '${user}'@'%';
|
||||
EOF
|
||||
}
|
||||
|
||||
|
|
@ -1103,6 +1104,7 @@ mysql_ensure_optional_database_exists() {
|
|||
local character_set=""
|
||||
local collate=""
|
||||
local user=""
|
||||
local privileges=""
|
||||
# For accessing an external database
|
||||
local db_host=""
|
||||
local db_port=""
|
||||
|
|
@ -1131,6 +1133,10 @@ mysql_ensure_optional_database_exists() {
|
|||
shift
|
||||
db_port="${1:?missing database port}"
|
||||
;;
|
||||
--privileges)
|
||||
shift
|
||||
privileges="${1:?missing privileges}"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid command line flag $1" >&2
|
||||
return 1
|
||||
|
|
@ -1147,10 +1153,7 @@ mysql_ensure_optional_database_exists() {
|
|||
mysql_ensure_database_exists "${flags[@]}"
|
||||
|
||||
if [[ -n "$user" ]]; then
|
||||
local -a grant_flags=("$user" "$database")
|
||||
[[ -n "$db_host" ]] && grant_flags+=("$db_host")
|
||||
[[ -n "$db_port" ]] && grant_flags+=("$db_port")
|
||||
mysql_ensure_user_has_database_privileges "${grant_flags[@]}"
|
||||
mysql_ensure_user_has_database_privileges "$user" "$database" "$privileges" "$db_host" "$db_port"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,8 +44,8 @@ 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.23`, `8.0.23-debian-10-r85`, `latest` (8.0/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.23-debian-10-r85/8.0/debian-10/Dockerfile)
|
||||
* [`5.7`, `5.7-debian-10`, `5.7.33`, `5.7.33-debian-10-r85` (5.7/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/5.7.33-debian-10-r85/5.7/debian-10/Dockerfile)
|
||||
* [`8.0`, `8.0-debian-10`, `8.0.24`, `8.0.24-debian-10-r-1`, `latest` (8.0/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/8.0.24-debian-10-r-1/8.0/debian-10/Dockerfile)
|
||||
* [`5.7`, `5.7-debian-10`, `5.7.34`, `5.7.34-debian-10-r0` (5.7/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mysql/blob/5.7.34-debian-10-r0/5.7/debian-10/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/mysql GitHub repo](https://github.com/bitnami/bitnami-docker-mysql).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue