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 1
1
# NOTE: Most of the file is borrowed from https://github.com/docker-library/mysql/blob/master/8.0/Dockerfile.debian
2
2
3
- FROM debian:11.7 -slim
3
+ FROM debian:11.8 -slim
4
4
5
5
ARG VERSION=0.0.0
6
6
ENV VERSION=${VERSION}
@@ -23,7 +23,7 @@ RUN set -eux \
23
23
24
24
# add gosu for easy step-down from root
25
25
# https://github.com/tianon/gosu/releases
26
- ENV GOSU_VERSION 1.16
26
+ ENV GOSU_VERSION 1.17
27
27
28
28
RUN set -eux \
29
29
&& savedAptMark="$(apt-mark showmanual)" \
@@ -75,9 +75,9 @@ RUN set -eux \
75
75
&& true
76
76
77
77
ENV MYSQL_MAJOR 8.0
78
- ENV MYSQL_VERSION 8.0.34 -1debian11
78
+ ENV MYSQL_VERSION 8.0.35 -1debian11
79
79
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
81
81
RUN set -eux \
82
82
&& 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 \
83
83
&& true
Original file line number Diff line number Diff line change 1
1
build :
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 .
3
3
.PHONY : build
4
4
5
5
HOME_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
40
40
41
41
- The default user (unprivileged) is ` mysql ` .
42
42
- ` 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 ` .
44
44
45
45
## Exporter
46
46
@@ -105,7 +105,7 @@ docker run --rm -it \
105
105
106
106
__ Notes:__
107
107
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.
109
109
- ` $PWD ` is just an example host working directory. Use your path.
110
110
- ` /home/mysql/ ` is the default home directory user (optional). View the [ User privileges] ( #user-privileges ) section above.
111
111
- ` /home/mysql/sample ` is a container directory that Docker will create for us.
@@ -161,7 +161,7 @@ DB_ARGS=
161
161
162
162
### Import a SQL script via a Docker container
163
163
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.
165
165
166
166
Note that ` mysql_importer ` supports environment variables or a ` .env ` file can be passed as an argument.
167
167
You can’t perform that action at this time.
0 commit comments