Closed
Description
This isn't a bug, more meant for discussion.
We've talked a bit about this before, but then there was less benefit to switching. With the new slim base images of OracleLinux, it may be of value to consider switching/adding variants, so I will just try to summarize pros and cons.
Pros:
- Image size is roughly halved. ol-slim is of comparable size to debian, while the custom Docker rpms on repo.mysql.com are much smaller than the standard Debian packages we use now. For 8.0 however there are the new -core packages for Debian that give the same size benefit (PR Use new -core packages for 8.0.1+ #282)
- Rpm package is more standardized across all major server versions. No need for the generic linux package used for 5.5
Cons:
- No apt. OracleLinux has yum. This is the big one, as it will break any image that uses FROM mysql, and then runs apt-anything.
- Risk of breaking other use cases that work on Debian but not rhel-based systems.
Possible ways to do it:
- Switch all: I don't really consider this an option, as such a major change to "stable" versions (even if most users of the image probably won't be affected) is not acceptable.
- Switch: One or a couple: The change is the biggest benefit for 5.5, since it would get rid of the generic linux package. But it would still be breaking someone's build. Also, having one version on OracleLinux and the rest on Debian will pretty much invert the "standardized" benefit :)
- Switch 8.0: Safer, since as a dmr it is not considered production ready, but we don't get the benefit since we have smaller 8.0.1 packages for deb as well.
- Offer both: Best solution from user perspective, but it's already annoying and risky having to maintain three redundant copies of the Dockerfile and entrypoint script. Could we generate the files from a common source in some way?
The last option at least sounds best to me, but only if it's possible to have those files generated in some way, or if we could find a fairly clean way to have one script file handle all of them and just keep the copies fully in sync.