File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11# NOTE: Most of the file is borrowed from https://github.com/docker-library/mysql/blob/master/8.0/Dockerfile.debian
22
3- FROM debian:11.7 -slim
3+ FROM debian:11.8 -slim
44
55ARG VERSION=0.0.0
66ENV VERSION=${VERSION}
@@ -23,7 +23,7 @@ RUN set -eux \
2323
2424# add gosu for easy step-down from root
2525# https://github.com/tianon/gosu/releases
26- ENV GOSU_VERSION 1.16
26+ ENV GOSU_VERSION 1.17
2727
2828RUN set -eux \
2929 && savedAptMark="$(apt-mark showmanual)" \
@@ -75,9 +75,9 @@ RUN set -eux \
7575 && true
7676
7777ENV MYSQL_MAJOR 8.0
78- ENV MYSQL_VERSION 8.0.34 -1debian11
78+ ENV MYSQL_VERSION 8.0.35 -1debian11
7979
80- # https://repo.mysql.com/apt/debian/pool/mysql-8.0/m/mysql-community/mysql-client_8.0.34 -1debian11_amd64.deb
80+ # https://repo.mysql.com/apt/debian/pool/mysql-8.0/m/mysql-community/mysql-client_8.0.35 -1debian11_amd64.deb
8181RUN set -eux \
8282 && echo 'deb [ signed-by=/etc/apt/keyrings/mysql.gpg ] http://repo.mysql.com/apt/debian/ bullseye mysql-8.0' > /etc/apt/sources.list.d/mysql.list \
8383 && true
Original file line number Diff line number Diff line change 11build :
2- @docker build -t mysql-client:latest -f 8.0/Dockerfile .
2+ @docker buildx build --platform= ' linux/amd64 ' -t mysql-client:latest -f 8.0/Dockerfile .
33.PHONY : build
44
55HOME_USER ?= $(shell echo $$(id -u $$USER ) :$$(id -g $$USER ) )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ docker run -it --rm joseluisq/mysql-client mysql --version
4040
4141- The default user (unprivileged) is ` mysql ` .
4242- ` mysql ` home directory is located at ` /home/mysql ` .
43- - If you want a fully privileged user try ` root ` . E.g append a ` --user root ` argument to ` docker run ` .
43+ - If you want a fully privileged user try ` root ` . E.g. append a ` --user root ` argument to ` docker run ` .
4444
4545## Exporter
4646
@@ -105,7 +105,7 @@ docker run --rm -it \
105105
106106__ Notes:__
107107
108- - ` --volume $PWD:/home/mysql/sample ` specifies a [ bind mount [ directory] ( https://docs.docker.com/storage/bind-mounts/ ) from the host to the container.
108+ - ` --volume $PWD:/home/mysql/sample ` specifies a bind mount [ directory] ( https://docs.docker.com/storage/bind-mounts/ ) from the host to the container.
109109- ` $PWD ` is just an example host working directory. Use your path.
110110- ` /home/mysql/ ` is the default home directory user (optional). View the [ User privileges] ( #user-privileges ) section above.
111111- ` /home/mysql/sample ` is a container directory that Docker will create for us.
@@ -161,7 +161,7 @@ DB_ARGS=
161161
162162### Import a SQL script via a Docker container
163163
164- The following Docker commands create a container to import a SQL script file to a specific database and remove the container afterward.
164+ The following Docker commands create a container to import an SQL script file to a specific database and remove the container afterward.
165165
166166Note that ` mysql_importer ` supports environment variables or a ` .env ` file can be passed as an argument.
167167
You can’t perform that action at this time.
0 commit comments