Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client only variant? #1062

Open
cen1 opened this issue May 17, 2024 · 3 comments
Open

Client only variant? #1062

cen1 opened this issue May 17, 2024 · 3 comments

Comments

@cen1
Copy link

cen1 commented May 17, 2024

Sometimes I only need some sort of an init container to seed the database or a similar task and don't need the entire mysql server installation in the image. Would it make sense to introduce a CLI only image variant?

@tianon
Copy link
Member

tianon commented May 17, 2024

Hmm, interesting idea! There is a separate package for mysql-shell, but I don't think there's a separate package for the older mysql CLI (of the "minimal" packages we use):

$ docker run --rm --pull=always mysql rpm -qa | grep mysql
latest: Pulling from library/mysql
Digest: sha256:4a4e5e2a19aab7a67870588952e8f401e17a330466ecfc55c9acf51196da5bd0
Status: Image is up to date for mysql:latest
mysql-community-server-minimal-8.4.0-1.el9.x86_64
mysql-shell-8.4.0-1.el9.x86_64

That being said, I'm not sure us providing such an image really provides much value, since it's effectively just adding a source and installing a single package, and most users are already going to be running the server or an application that connects directly. 😅

@cen1
Copy link
Author

cen1 commented May 17, 2024

The value is entirely a selfish one :). To be able to simply use mysql-cli:8.0-debian instead of rolling my own image, storing it on some registry, keep it up to date etc. Assuming there are probably 100s or 1000s of similar devs having this use case they all have to roll their own or simply eat the size cost and use the full image.

@LaurentGoderre
Copy link
Member

I think it had some value but maybe not as much as a schema migration tool like liquibase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants