Renaming flavors which include board and re-structure of our overlay and docker files #1400
mauromorales
started this conversation in
General
Replies: 1 comment 1 reply
-
IMO, all sounds good to me. Less files, the better, build stuff done on the builder definition earthfile+dockerfiles. The only thing is, will it get much more complex? We may just want to add comments to stuff to make it clear what is happenig but for me this proposition looks good! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After working a bit with it for the Ubuntu RPi flavors I found a few issues with this setup, and would like to propose a change and would like to hear your opinion
This is of course a draft and can be adapted with your improvements 🙌
Current flavor differentiation
And the same applies for the other flavors which has support for arm RPi
Current structure of the overlay files
Current naming of the Dockerfiles
Related issues
opensuse-leap
,opensuse-leap-arm-rpi
and something likeopensuse-leap-arm-nvidia
.--FLAVOR=opensuse-leap-arm-rpi
but therpi
suffix, doesn't make sense and related RPi packages should not be installed (see next point)ubuntu-arm-rpi
flavor, there are two different types of kernels that should be installed, one for the generic image and a different one for the RPi. In this case they are conflicting ones so we do some logic to ensure that only the right one is, but if they are not conflicting we just keep both of them bloating the imageProposal
a. We keep the logic inside the generic overlay file but add logic there to decide what to do depending on the board
b. We have functionality specific overlay files, and Earthly is in charge of doing the evaluation and deciding which ones to copy depending on the flavor+board
MODEL
flag that was passed. IMO this is a clean way to keep all the logic in one place and ensures that we don't apply changes just to one Dockerfile and forget to add to another making maintenance easierProgress
Beta Was this translation helpful? Give feedback.
All reactions