Skip to content
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 target to transform kairos image into UKI #2169

Merged
merged 6 commits into from
Jan 25, 2024

Conversation

mauromorales
Copy link
Member

@mauromorales mauromorales commented Jan 24, 2024

This new target requires to pass an existing kairos image, which means it's a two step proces e.g.

earthly --push +base-image --....
earhtly +uki-enki --BASE_IMAGE=<pushed-image-from-previous-step>

I first tried to have it in a single step but I'm not sure if it's possible since enki cannot access the local registry from Earthly. Even when using WITH DOCKER this is problematic because our uki building image is on fedora. We have to use fedora because Ubuntu does not have the latest packages e.g. ukify. However, Earthly complains that it doesn't know the distro, so considers it's a Debian and then proceeds unsuccessfully to try to install packages via apt.

Please let me know if I'm missing something here. And if it's not possible, then the question for me is really, about why we are doing this on Earthly since we are trying to move away from it for the Factory.

Relates to #870
Fixes #2170

@mauromorales mauromorales marked this pull request as draft January 24, 2024 13:57
Signed-off-by: Mauro Morales <[email protected]>
Earthfile Outdated Show resolved Hide resolved
Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Mauro Morales <[email protected]>
@mauromorales mauromorales self-assigned this Jan 25, 2024
@mauromorales mauromorales marked this pull request as ready for review January 25, 2024 08:15
Signed-off-by: Mauro Morales <[email protected]>
Earthfile Show resolved Hide resolved
@mauromorales mauromorales requested review from Itxaka, jimmykarily and a team January 25, 2024 12:31
@mauromorales mauromorales merged commit 5944a15 into master Jan 25, 2024
36 checks passed
@mauromorales mauromorales deleted the 870-integrate-enki-in-earthly branch January 25, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Consume enki in Kairos Earthfile
3 participants