-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Using OracleLinux as a base #289
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
Comments
Interesting thoughts -- if you (Oracle) are more willing/able to support MySQL on Oracle Linux, and would rather not support the Debian variants anymore, IMO switching 8.0 over outright is a no-brainer, regardless of anything else we decide to do. 😄 Regarding templates, we often use templates ( So, adding Oracle Linux variants is fine if you want to commit to the added maintenance -- we're going to defer a lot to your decision here, we're still here just to support you. 😄 (We generally are very strongly against adding various "distro variants" just because, but I think this is a really strong case for an exception to that, given that MySQL on Oracle Linux is more "strongly supported" by upstream. 👍) |
wouldn't it be a great idea to use alpine as a base image given its just 5 MB? |
We have a working template system for the upstream images which will be released soon. It's pretty ugly with the sed commands, but it's not complex. I'm not sure if it would be possible to use a better scripting system, i.e. python, with the way the images are updated? As mentioned, the OracleLinux images are more uniform since we build docker-specific rpm packages, but the only really big diff in the official images is in the 5.5 Dockerfile, since it uses the generic linux packages. So if we manage to get everything else into templates that should still be a pretty big win maintenance-wise. We can discuss it more once our updates are released. |
https://github.com/mysql/mysql-docker has been rewritten with a simple template system now (same system is used in the mysql-cluster branch as well) |
That looks pretty similar to the template system we've used in a number of
other repos; for example,
https://github.com/docker-library/python/blob/dc08012bd82a2c566abd1c1150554845cb749281/Dockerfile-debian.template
,
https://github.com/docker-library/golang/blob/347de3fe79db411821e841f782c156f6fe1d9704/Dockerfile-debian.template,
etc. 👍
|
@tianon This seems to work pretty well with the current entrypoint script (so I've also renamed .template.Debian to .template.entrypoint since that is actually platform-independent), but there are some practical issues to work out I would welcome some suggestions for:
|
When supporting multiple OS distributions, we've often converted our repos to do something like Here is an similar layout in ghost. I don't think we should have multiple template folders ( As for as the new Oracle Dockerfile:
Here is our FAQ on building: https://github.com/docker-library/faq/#how-are-images-built-especially-multiarch. To control which arches are built it is just a field in the |
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:
Cons:
Possible ways to do it:
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.
@tianon
@yosifkit
What are your thoughts on this?
The text was updated successfully, but these errors were encountered: