Skip to content

Commit

Permalink
v8.0.34
Browse files Browse the repository at this point in the history
debian 11.7
mysql client 8.0.34
  • Loading branch information
joseluisq committed Jul 23, 2023
1 parent ea7d9ca commit c8e9bd0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions 8.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NOTE: Most of the file is borrowed from https://github.com/docker-library/mysql/blob/master/8.0/Dockerfile.debian

FROM debian:11.6-slim
FROM debian:11.7-slim

ARG VERSION=0.0.0
ENV VERSION=${VERSION}
Expand Down Expand Up @@ -75,9 +75,9 @@ RUN set -eux \
&& true

ENV MYSQL_MAJOR 8.0
ENV MYSQL_VERSION 8.0.33-1debian11
ENV MYSQL_VERSION 8.0.34-1debian11

# https://repo.mysql.com/apt/debian/pool/mysql-8.0/m/mysql-community/mysql-client_8.0.33-1debian11_amd64.deb
# https://repo.mysql.com/apt/debian/pool/mysql-8.0/m/mysql-community/mysql-client_8.0.34-1debian11_amd64.deb
RUN set -eux \
&& 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 \
&& true
Expand Down
2 changes: 1 addition & 1 deletion LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022-present Jose Quintana <https://git.io/joseluisq>
Copyright (c) 2022-present Jose Quintana <https://joseluisq.net>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ docker run -it --rm joseluisq/mysql-client mysql --version

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

## Exporter

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

### Setup via environment variables
Expand Down Expand Up @@ -107,7 +107,7 @@ __Notes:__

- `--volume $PWD:/home/mysql/sample` specifies a [bind mount [directory](https://docs.docker.com/storage/bind-mounts/) from the host to the container.
- `$PWD` is just an example host working directory. Use your path.
- `/home/mysql/` is default home directory user (optional). View [User privileges](#user-privileges) section above.
- `/home/mysql/` is the default home directory user (optional). View the [User privileges](#user-privileges) section above.
- `/home/mysql/sample` is a container directory that Docker will create for us.
- `--workdir /home/mysql/sample` specifies the working directory used by default inside the container.
- `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.
Expand Down Expand Up @@ -185,7 +185,7 @@ docker run --rm -it \

**Notes:**

- `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.
- `DB_IMPORT_GZIP=true`: Decompress a dump file using Gzip (optional). If `false` or not defined then the import file will be treated as a plain `.sql` file.
- `DB_ARGS`: can be used to pass more `mysql` arguments (optional).
- A `.env` example file can be found at [./8.0/env/mysql_importer.env](./8.0/env/mysql_importer.env)

Expand All @@ -199,4 +199,4 @@ Feel free to send some [pull request](https://github.com/joseluisq/docker-mysql-

This work is primarily distributed under the terms of both the [MIT license](LICENSE-MIT) and the [Apache License (Version 2.0)](LICENSE-APACHE).

© 2022-present [Jose Quintana](https://git.io/joseluisq)
© 2022-present [Jose Quintana](https://joseluisq.net)

0 comments on commit c8e9bd0

Please sign in to comment.