Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arey/mysql-client
Run a MySQL client from a docker container
https://github.com/arey/mysql-client
Last synced: 27 days ago
JSON representation
Run a MySQL client from a docker container
- Host: GitHub
- URL: https://github.com/arey/mysql-client
- Owner: arey
- License: apache-2.0
- Created: 2015-05-15T16:19:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-31T16:50:57.000Z (over 1 year ago)
- Last Synced: 2024-10-04T13:34:36.490Z (3 months ago)
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 19
- Watchers: 2
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mysql-client
[![Docker Hub](https://img.shields.io/badge/docker-ready-blue.svg)](https://registry.hub.docker.com/u/arey/mysql-client/)
Docker image with a MySQL client.
This Docker image is based on Alpine Linux.
Support both Intel/AMD and ARM architectures.Virtual size : 11 MB
From image: alpine:3.14
Mysql client: Ver 15.1 Distrib 10.1.26-MariaDB
## Usage
Execute SQL statements from an input SQL file:
```
$ docker run -v :/sql --link :mysql -it arey/mysql-client -h mysql -p -D -e "source /sql/"
```## Build and publish
```
docker buildx install
docker buildx create --use
docker buildx build --platform linux/386,linux/amd64,linux/arm64,linux/arm . -t arey/mysql-client:latest --push
```