-
Notifications
You must be signed in to change notification settings - Fork 173
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
Add support for specifying build time and run time package mirror URLs from the template config #646
Comments
I can add support for this if it has not been assigned |
Hello, I'm working with sona78 on this project and was wondering if there was more info on this issue. Are there specific files I should be looking into for this? Thanks! |
So currently most images have two main URLs, one for where to fetch the initial image from and one for where to fetch the additional packages from. The former can usually be overridden through the "url" field in the "source" section. The latter depending on the package manager can be handled through the "repositories" sub-section (inside of "packages") or is just hardcoded. On top of that, we'd likely find it quite useful to be able to specify build-time repositories as well as run-time repositories. The build-time ones being used while distrobuilder is running and then get removed and replaced by their run-time equivalent just before the image is generated. I think a good first step would be to extend the repository syntax to allow marking entries as being only used for build time or for run time. We could do that with a You could then test that by taking the Ubuntu example YAML and making it build with Once that works properly, the next step will be to go through the code and remove all the hacks we currently have around that, basically having everything rely on the new repository syntax. A quick look through as showed me the following having hardcoded repository logic:
So essentially all of the Red Hat derivatives. |
Hey, sadly I wasn't able to make considerable progress on this issue. I'll put the GitHub link and files/lines where the changes I made are. I worked on adding presence and the logic to handle it, but I was unable to test it due to the environment I was running, so I am not sure on its correctness. I still wanted to share it here in case it was helpful, but I didn't want to make a pull request since it could very well be wrong. GitHub: https://github.com/sona78/distrobuilder
Sorry I was unable to do more and I hope this is helpful! |
Thanks for the notes and branch! I've cleared the assignees on this one so others may take this over. |
It would be good to provide the user the ability to specify URLs to be used for both build time download of packages and the URL used for package updates inside the built image. This would avoid needing to hard code them in the project's code itself when we need to use a specific mirror URL for our community image builds.
See #645 for more info
The text was updated successfully, but these errors were encountered: