Skip to content

Commit 8036f97

Browse files
committed
v1.8.0
- alpine 3.21.2 - mariadb-client 11.4.4-r1
1 parent 3231159 commit 8036f97

File tree

3 files changed

+35
-31
lines changed

3 files changed

+35
-31
lines changed

Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM alpine:3.18.9 as build
1+
FROM --platform=$BUILDPLATFORM alpine:3.21.2 as build
22

33
ARG TARGETPLATFORM
44
ARG VERSION=0.0.0
@@ -22,13 +22,13 @@ RUN set -ex; \
2222
chmod +x /usr/local/bin/enve; \
2323
true
2424

25-
FROM alpine:3.18.9
25+
FROM alpine:3.21.2
2626

2727
ARG VERSION=0.0.0
2828
ENV VERSION=${VERSION}
2929

3030
LABEL version="${VERSION}" \
31-
description="MySQL client for easy export and import databases using Docker." \
31+
description="MySQL client (mariadb-client) for easy export and import databases using Docker." \
3232
maintainer="Jose Quintana <joseluisq.net>"
3333

3434
# Dependencies
@@ -79,7 +79,7 @@ CMD [ "mysql" ]
7979
# Metadata
8080
LABEL org.opencontainers.image.vendor="Jose Quintana" \
8181
org.opencontainers.image.url="https://github.com/joseluisq/alpine-mysql-client" \
82-
org.opencontainers.image.title="Alpine / MySQL Client" \
83-
org.opencontainers.image.description="MySQL client for easy export and import databases using Docker." \
82+
org.opencontainers.image.title="Alpine / MySQL Client (mariadb-client)" \
83+
org.opencontainers.image.description="MySQL client (mariadb-client) for easy export and import databases using Docker." \
8484
org.opencontainers.image.version="v${VERSION}" \
8585
org.opencontainers.image.documentation="https://github.com/joseluisq/alpine-mysql-client/blob/master/README.md"

Makefile

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
buildx:
2-
@docker buildx build \
3-
--network=host \
1+
build:
2+
@docker build \
43
--build-arg VERSION=0.0.0 \
54
-t alpine-mysql-client:latest -f Dockerfile .
6-
.PHONY: buildx
5+
.PHONY: build
76

87
export:
98
@docker run --rm -it \

README.md

+27-22
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,47 @@
1-
# Alpine MySQL Client
1+
# Alpine MySQL Client (MariaDB Client)
22

33
[![devel](https://github.com/joseluisq/alpine-mysql-client/actions/workflows/devel.yml/badge.svg)](https://github.com/joseluisq/alpine-mysql-client/actions/workflows/devel.yml) ![Docker Image Size](https://img.shields.io/docker/image-size/joseluisq/alpine-mysql-client/1) ![Docker Image Version](https://img.shields.io/docker/v/joseluisq/alpine-mysql-client/1) ![Docker Pulls](https://img.shields.io/docker/pulls/joseluisq/alpine-mysql-client.svg)
44

5-
> [MySQL client](https://dev.mysql.com/doc/refman/8.0/en/programs-client.html) (MariaDB Client) for easy **export** and **import** databases using Docker.
5+
> [MySQL client](https://dev.mysql.com/doc/refman/8.0/en/programs-client.html) ([MariaDB Client](https://mariadb.com/kb/en/clients-utilities/)) for easy **export** and **import** databases using Docker.
66
77
_**Note:** If you are looking for a **MySQL 8 Client** then go to [Docker MySQL 8 Client](https://github.com/joseluisq/docker-mysql-client) project._
88

99
🐳 View on [Docker Hub](https://hub.docker.com/r/joseluisq/alpine-mysql-client/)
1010

1111
## MySQL Client programs
1212

13-
**Note:** [MySQL client (mariadb-client)](https://pkgs.alpinelinux.org/package/v3.11/main/x86_64/mysql-client) is an alias package for [mysql-client](https://dev.mysql.com/doc/refman/8.0/en/programs-client.html) migration tools.
13+
**Note:** [MySQL client (mariadb-client)](https://pkgs.alpinelinux.org/package/v3.21/main/x86_64/mysql-client) is an alias package for [mysql-client](https://dev.mysql.com/doc/refman/8.0/en/programs-client.html) migration tools.
1414

1515
```sh
16-
mysql
17-
mysql_find_rows
18-
mysql_waitpid
19-
mysqladmin
20-
mysqldump
21-
mysqlimport
22-
mysql-export
16+
# Equivalent MySQL client tools
17+
mariadb
18+
mariadb-access
19+
mariadb-admin
20+
mariadb-check
21+
mariadb-dump
22+
mariadb-dumpslow
23+
mariadb-find-rows
24+
mariadb-import
25+
mariadb-secure-installation
26+
mariadb-show
27+
mariadb-waitpid
2328
mysql_fix_extensions
24-
mysqlaccess
25-
mysqlcheck
26-
mysqldumpslow
27-
mysqlshow
29+
30+
# Tools provided by this image
31+
mysql_exporter
32+
mysql_importer
2833
```
2934

3035
For more details check it out:
3136

32-
- [MariaDB 10 - Clients and Utilities](https://mariadb.com/kb/en/clients-utilities/)
37+
- [MariaDB 11 - Clients and Utilities](https://mariadb.com/kb/en/clients-utilities/)
3338
- [MySQL 8 - Client Programs](https://dev.mysql.com/doc/refman/8.0/en/programs-client.html)
3439

3540
## Usage
3641

3742
```sh
38-
docker run -it --rm joseluisq/alpine-mysql-client mysql --version
39-
# mysql Ver 15.1 Distrib 10.11.8-MariaDB, for Linux (x86_64) using readline 5.1
43+
docker run -it --rm joseluisq/alpine-mysql-client mariadb --version
44+
# mariadb from 11.4.4-MariaDB, client 15.2 for Linux (x86_64) using readline 5.1
4045
```
4146

4247
## User privileges
@@ -51,7 +56,7 @@ This image comes with some additional tools.
5156

5257
### Exporter
5358

54-
`mysql_exporter` is a custom tool that exports a database script using `mysqldump`. Additionally, it supports gzip compression.
59+
`mysql_exporter` is a custom tool that exports a database script using `mariadb-dump` (a.k.a. `mysqldump`). Additionally, it supports gzip compression.
5560
It can be configured via environment variables or using `.env` file.
5661

5762
#### Setup via environment variables
@@ -82,7 +87,7 @@ DB_ARGS=
8287
**Notes:**
8388

8489
- `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.
85-
- `DB_ARGS`: can be used to pass more `mysqldump` arguments (optional).
90+
- `DB_ARGS`: can be used to pass more `mariadb-dump` (a.k.a. `mysqldump`) arguments (optional).
8691
- A `.env` example file can be found at [./mysql_exporter.env](./mysql_exporter.env)
8792

8893
#### Export a database using a Docker container
@@ -101,7 +106,7 @@ docker run --rm -it \
101106

102107
# Alpine / MySQL Client - Exporter
103108
# ================================
104-
# mysqldump Ver 10.17 Distrib 10.4.12-MariaDB, for Linux (x86_64)
109+
# mariadb-dump from 11.4.4-MariaDB, client 10.19 for Linux (x86_64)
105110
# Exporting database `mydb` into a SQL script file...
106111
# Output file: mydb.sql.gz (SQL GZipped)
107112
# Database `mydb` was exported on 0s successfully!
@@ -136,7 +141,7 @@ services:
136141
137142
### Importer
138143
139-
`mysql_importer` is a custom tool that imports a SQL script file (text or Gzip) using `mysql` command.
144+
`mysql_importer` is a custom tool that imports a SQL script file (text or Gzip) using `mariadb` (a.k.a. `mysql`) command.
140145
It can be configured via environment variables or using `.env` file.
141146

142147
#### Setup via environment variables
@@ -180,7 +185,7 @@ docker run --rm -it \
180185

181186
# Alpine / MySQL Client - Importer
182187
# ================================
183-
# mysql Ver 15.1 Distrib 10.4.12-MariaDB, for Linux (x86_64) using readline 5.1
188+
# mariadb from 11.4.4-MariaDB, client 15.2 for Linux (x86_64) using readline 5.1
184189
# Importing a SQL script file into database `dbtesting`...
185190
# Input file: mydb.sql.gz (10M / SQL GZipped)
186191
# Database `dbtesting` was imported on 1s successfully!

0 commit comments

Comments
 (0)