-
Notifications
You must be signed in to change notification settings - Fork 221
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
Use buildah for building images #773
Conversation
This allows us to build all Fedora images using the same script. Run it by calling `images/build-fedora` from the repository root. This also gets rid of the duplicated README files.
If you have a look and think this is something you want I'm happy to put more work into it. I'll keep it on pause until then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the motivation for this?
The images
sub-directory is meant to offer the sources for the Toolbox images, so that anybody hacking on Toolbox has a single reference point to all the images and can quickly rebuild an image locally, if necessary. Fedora's OCI image infrastructure only works with Dockerfiles, even though buildah
does offer other ways to build images, and that's why the images are defined the way they are.
A significant change in the way the OCI images are defined in Fedora's build infrastructure and in the upstream toolbox.git
will make it very difficult to keep them synchronized as they evolve.
The main motivation was #771, where I needed to update all existing README files because they're duplicated for every image. The current dockerfiles also has lots of Ideally I'd like to have more buildah scripts in there for other distros like Ubuntu. Even if they aren't officially distributed it'd be very helpful for people looking to set up their own. I personally use toolbox with Ubuntu for work since the official dev environment is Ubuntu 18.04.
I made this a draft precisely because it's pretty invasive. I didn't know this would have big implications to the existing workflow, or that there was an upstream repository for this. If you don't think it should go in here feel free to close it. |
Well, there's a reason for that. :) The If the current iteration of the guidelines don't require a
Not if
For other operating system distributions we should use whichever format is preferred by the infrastructure that's used to distribute the images. |
Fair enough! Since it doesn't seem like the desired approach I'll close this. |
Ok, thanks for understanding. I still appreciate your participation in the project, though. Thanks again! |
This allows us to build all Fedora images using the same script. Run it by calling
images/build-fedora
from the repository root.This also gets rid of the duplicated README files.
I marked this as draft since I haven't considered what other places that might need updating.