Skip to content

Commit d3c7f89

Browse files
committed
v8.0.30
1 parent 96fe621 commit d3c7f89

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

8.0/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ RUN set -eux \
7676
&& true
7777

7878
ENV MYSQL_MAJOR 8.0
79-
ENV MYSQL_VERSION 8.0.29-1debian11
79+
ENV MYSQL_VERSION 8.0.30-1debian11
8080

81-
# https://repo.mysql.com/apt/debian/pool/mysql-8.0/m/mysql-community/mysql-client_8.0.29-1debian11_amd64.deb
81+
# https://repo.mysql.com/apt/debian/pool/mysql-8.0/m/mysql-community/mysql-client_8.0.30-1debian11_amd64.deb
8282
RUN set -eux \
8383
&& 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 \
8484
&& true
@@ -103,8 +103,9 @@ RUN set -eux \
103103
ARG ENVE_VERSION=1.4.0
104104

105105
RUN set -eux \
106+
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
106107
&& wget -O /tmp/enve.tar.gz \
107-
"https://github.com/joseluisq/enve/releases/download/v${ENVE_VERSION}/enve_v${ENVE_VERSION}_linux_amd64.tar.gz" \
108+
"https://github.com/joseluisq/enve/releases/download/v${ENVE_VERSION}/enve_v${ENVE_VERSION}_linux_$dpkgArch.tar.gz" \
108109
&& tar xzvf /tmp/enve.tar.gz -C /usr/local/bin enve \
109110
&& enve -v \
110111
&& rm -rf /tmp/enve.tar.gz \

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
> [MySQL 8 client](https://dev.mysql.com/doc/refman/8.0/en/programs-client.html) for export and import databases easily using Docker.
66
7-
This is a __Linux Docker image__ using latest __Debian [11-slim](https://hub.docker.com/_/debian?tab=tags&page=1&name=11-slim)__ ([Bullseye](https://www.debian.org/News/2021/20210814)).
7+
This is a __Linux Docker image__ using the latest __Debian [11-slim](https://hub.docker.com/_/debian?tab=tags&page=1&name=11-slim)__ ([Bullseye](https://www.debian.org/News/2021/20210814)).
88

99
_**Note:** If you are looking for a **MariaDB Client** then go to [Alpine MySQL Client](https://github.com/joseluisq/alpine-mysql-client) project._
1010

@@ -27,7 +27,7 @@ mysqldumpslow
2727
mysqlshow
2828
```
2929

30-
For more details see official [MySQL 8 Client Programs](https://dev.mysql.com/doc/refman/8.0/en/programs-client.html) documentation.
30+
For more details see the official [MySQL 8 Client Programs](https://dev.mysql.com/doc/refman/8.0/en/programs-client.html) documentation.
3131

3232
## Usage
3333

@@ -38,13 +38,13 @@ docker run -it --rm joseluisq/mysql-client mysql --version
3838

3939
## User privileges
4040

41-
- Default user (unprivileged) is `mysql`.
41+
- The default user (unprivileged) is `mysql`.
4242
- `mysql` home directory is located at `/home/mysql`.
4343
- If you want a full privileged user try `root`. E.g append a `--user root` argument to `docker run`.
4444

4545
## Exporter
4646

47-
`mysql_exporter` is a custom tool which exports a database script using `mysqldump`. Additionally it support gzip compression.
47+
`mysql_exporter` is a custom tool that exports a database script using `mysqldump`. Additionally, it support gzip compression.
4848
It can be configured via environment variables or using `.env` file.
4949

5050
### Setup via environment variables
@@ -74,13 +74,13 @@ DB_ARGS=
7474

7575
**Notes:**
7676

77-
- `DB_EXPORT_GZIP=true`: Compress the sql file using Gzip (optional). If `false` or not defined then the exported file will be a `.sql` file.
78-
- `DB_ARGS`: can be used in order to pass more `mysqldump` arguments (optional).
79-
- An `.env` example file can be found at [./8.0/env/mysql_exporter.env](./8.0/env/mysql_exporter.env)
77+
- `DB_EXPORT_GZIP=true`: Compress the SQL file using Gzip (optional). If `false` or not defined then the exported file will be a `.sql` file.
78+
- `DB_ARGS`: can be used to pass more `mysqldump` arguments (optional).
79+
- A `.env` example file can be found at [./8.0/env/mysql_exporter.env](./8.0/env/mysql_exporter.env)
8080

8181
### Export a database using a Docker container
8282

83-
The following Docker commands create a container in order to export a database and then remove such container automatically.
83+
The following Docker commands create a container to export a database and then remove the container automatically.
8484

8585
Note that `mysql_exporter` supports environment variables or a `.env` file can be passed as an argument.
8686

@@ -105,12 +105,12 @@ docker run --rm -it \
105105

106106
__Notes:__
107107

108-
- `--volume $PWD:/home/mysql/sample` specificy a [bind mount directory](https://docs.docker.com/storage/bind-mounts/) from host to container.
109-
- `$PWD` is just a example host working directory. Use your own path.
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+
- `$PWD` is just an example host working directory. Use your path.
110110
- `/home/mysql/` is default home directory user (optional). View [User privileges](#user-privileges) section above.
111111
- `/home/mysql/sample` is a container directory that Docker will create for us.
112-
- `--workdir /home/mysql/sample` specificy the working directory used by default inside the container.
113-
- `production.env` is a custom env file path with the corresponding environment variables passed as argument. That file shoud available in your host working directory. E.g `$PWD` in my case.
112+
- `--workdir /home/mysql/sample` specifies the working directory used by default inside the container.
113+
- `production.env` is a custom env file path with the corresponding environment variables passed as arguments. That file should be available in your host working directory. E.g `$PWD` in this case.
114114

115115
### Export a database using a Docker Compose file
116116

@@ -131,7 +131,7 @@ services:
131131
132132
## Importer
133133
134-
`mysql_importer` is a custom tool which imports a SQL script file (text or Gzip) using `mysql` command.
134+
`mysql_importer` is a custom tool that imports a SQL script file (text or Gzip) using `mysql` command.
135135
It can be configured via environment variables or using `.env` file.
136136

137137
### Setup via environment variables
@@ -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 in order to import a SQL script file to an specific database and removing the container afterwards.
164+
The following Docker commands create a container to import a SQL script file to a specific database and remove the container afterward.
165165

166166
Note that `mysql_importer` supports environment variables or a `.env` file can be passed as an argument.
167167

@@ -186,8 +186,8 @@ docker run --rm -it \
186186
**Notes:**
187187

188188
- `DB_IMPORT_GZIP=true`: Decompress a dump file using Gzip (optional). If `false` or not defined then the import file will be treated as plain `.sql` file.
189-
- `DB_ARGS`: can be used in order to pass more `mysql` arguments (optional).
190-
- An `.env` example file can be found at [./8.0/env/mysql_importer.env](./8.0/env/mysql_importer.env)
189+
- `DB_ARGS`: can be used to pass more `mysql` arguments (optional).
190+
- A `.env` example file can be found at [./8.0/env/mysql_importer.env](./8.0/env/mysql_importer.env)
191191

192192
## Contributions
193193

0 commit comments

Comments
 (0)