https://github.com/snickerjp/docker-mysql-shell
docker mysql-shell
https://github.com/snickerjp/docker-mysql-shell
docker mysql mysql-shell
Last synced: 4 months ago
JSON representation
docker mysql-shell
- Host: GitHub
- URL: https://github.com/snickerjp/docker-mysql-shell
- Owner: snickerjp
- Created: 2021-03-04T12:25:01.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-10T13:29:32.000Z (11 months ago)
- Last Synced: 2025-02-10T13:39:51.494Z (11 months ago)
- Topics: docker, mysql, mysql-shell
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/snickerjp/docker-mysql-shell
- Size: 49.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker MySQL Shell Images
[](https://app.codacy.com/gh/snickerjp/docker-mysql-shell?utm_source=github.com&utm_medium=referral&utm_content=snickerjp/docker-mysql-shell&utm_campaign=Badge_Grade_Settings)
This repository contains Dockerfiles for MySQL Shell in two different series:
- Innovation Series (9.4.x) - Latest features [(Dockerfile)](docker/innovation/Dockerfile)
- LTS Series (8.4.x) - Long Term Support [(Dockerfile)](docker/lts/Dockerfile)
Both images are based on Debian 12 (slim) for minimal image size.
## Available Tags
### Innovation Series [(Dockerfile)](docker/innovation/Dockerfile)
- `snickerjp/docker-mysql-shell:9.4` - Innovation series with specific version
- `snickerjp/docker-mysql-shell:Innovation` - Latest Innovation series build
### LTS Series [(Dockerfile)](docker/lts/Dockerfile)
- `snickerjp/docker-mysql-shell:8.4` - LTS series with specific version
- `snickerjp/docker-mysql-shell:LTS` - Latest LTS series build
- `snickerjp/docker-mysql-shell:latest` - Same as LTS series
## Building the Images
### Innovation Series (9.4.x) [(Dockerfile)](docker/innovation/Dockerfile)
```bash
cd docker/innovation
docker build -t snickerjp/docker-mysql-shell:9.4 .
```
### LTS Series (8.4.x) [(Dockerfile)](docker/lts/Dockerfile)
```bash
cd docker/lts
docker build -t snickerjp/docker-mysql-shell:8.4 .
```
## Usage
Run MySQL Shell container:
```bash
# Innovation Series
docker run -it snickerjp/docker-mysql-shell:9.4
# or
docker run -it snickerjp/docker-mysql-shell:Innovation
# LTS Series
docker run -it snickerjp/docker-mysql-shell:8.4
# or
docker run -it snickerjp/docker-mysql-shell:LTS
# or
docker run -it snickerjp/docker-mysql-shell:latest
```
To connect to a MySQL Server:
```bash
# Innovation Series
docker run -it snickerjp/docker-mysql-shell:9.4 --uri mysql://user:pass@host:port/schema
# or using Innovation tag
docker run -it snickerjp/docker-mysql-shell:Innovation --uri mysql://user:pass@host:port/schema
# LTS Series
docker run -it snickerjp/docker-mysql-shell:8.4 --uri mysql://user:pass@host:port/schema
# or using LTS tag
docker run -it snickerjp/docker-mysql-shell:LTS --uri mysql://user:pass@host:port/schema
```
## Development Workflow
### Branch Strategy
- `feat-*`: Feature branches for new features and improvements
- `develop`: Integration branch for feature branches
- `main`: Release branch
### Pull Request Process
1. Create a new feature branch from `develop`:
```bash
git checkout develop
git pull origin develop
git checkout -b feat-your-feature-name
```
2. Make your changes and create a PR to `develop`
3. After PR is merged to `develop`, it will be included in the next release PR
4. Release PRs are automatically created from `develop` to `main` using git-pr-release
### Protected Branches
- `develop`: Requires PR review and successful status checks
- `main`: Protected release branch, only accepts PRs from `develop`