-
Notifications
You must be signed in to change notification settings - Fork 97
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
🏭 Consolidate osbuilder and Auroraboot #1633
Comments
One more image describing the desired state of the various tools (osbuilder, auroraboot, enki) and the relations between them. |
We will soon be able to build Kairos container images using just Dockerfiles (no Earthly or other tools). There are 2 things missing to have the full "factory" experience:
Right now the creation of additional artifacts happens in Earthly using osbuilder-tools image. Above we describe how Autoraboot should provide both the UX and the artifact building functionality. Let's consider splitting as such:
The new suggestion above is that osbuilder doesn't use Auroraboot but enki directly. This allows us to focus the UX of Auroraboot to humans and not try to satisfy the needs of osbuilder too. |
As part of kairos-io/kairos#1633 Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
so that it can be used as a library from Auroraboot as part of kairos-io/kairos#1633 The following anti-patterns make it very hard to re-use the enki functions: - viper is used as a global store, randomly accessing everything from anywhere - we pass around too many "configs": the BuildConfig, the embedded kairos-agent config, the BuildUKIAction (which is essentially yet another config), It's nearly impossible to construct the proper input for any function because we don't know what part of the configs available, is actually needed and used. This is a first refactoring that should at least let the caller use the BuildUKIAction without needing to populate a global "viper" object. Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
We currently have 2 different tools to build Kairos images:
Both of them have more responsibilities than building (e.g. Auroraboot handles netbooting, osbuilder handles upgrades) but they share the building part.
The current situation and the desired is described in the image above.
This is an epic to collect all the steps/issues toward the desired state.
The last item needs to be discussed and it will be more clear when we have everything consolidated in one image.
The text was updated successfully, but these errors were encountered: