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 support for RPI3 for alpine flavor #1820

Closed
wants to merge 77 commits into from
Closed

add support for RPI3 for alpine flavor #1820

wants to merge 77 commits into from

Conversation

Ludea
Copy link
Contributor

@Ludea Ludea commented Sep 14, 2023

What this PR does / why we need it:
Add support for RP3

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
With 2.4 release, RPI3 and RPI4 get separate img

@Itxaka
Copy link
Member

Itxaka commented Sep 14, 2023

Looks good. We may need to change some things before getting this merged to separate the rpi images and artifacts into 2 different repos maybe as not sure if the artifacts have the proper naming to be alongside...

@Ludea
Copy link
Contributor Author

Ludea commented Sep 14, 2023

+base-image | linux/arm64 | FLAVOR=opensuse-leap-arm-rpi MODEL=rpi4 VARIANT=core => https://github.com/kairos-io/kairos/actions/runs/6185486007/job/16791177481#step:14:2663
seems model var is not updated for base-image

@Ludea
Copy link
Contributor Author

Ludea commented Sep 14, 2023

there is also
common | System has not been booted with systemd as init system (PID 1). Can't operate. common | Failed to connect to bus: Host is down common | done]

@Itxaka
Copy link
Member

Itxaka commented Sep 14, 2023

there is also common | System has not been booted with systemd as init system (PID 1). Can't operate. common | Failed to connect to bus: Host is down common | done]

default build for prs is rpi4 and just one flavor :)
This would be reflected on master jobs which run the full flavor suite: https://github.com/kairos-io/kairos/blob/master/.github/workflows/image-arm.yaml#L25

@Ludea
Copy link
Contributor Author

Ludea commented Sep 14, 2023

Looks good. We may need to change some things before getting this merged to separate the rpi images and artifacts into 2 different repos maybe as not sure if the artifacts have the proper naming to be alongside...

https://github.com/kairos-io/kairos/actions/runs/6185486007/job/16791177481#step:14:32128
it's tagged with rpi4

@Itxaka
Copy link
Member

Itxaka commented Sep 14, 2023

Looks good. We may need to change some things before getting this merged to separate the rpi images and artifacts into 2 different repos maybe as not sure if the artifacts have the proper naming to be alongside...

kairos-io/kairos/actions/runs/6185486007/job/16791177481#step:14:32128 it's tagged with rpi4

yes, on PRs we only build that: https://github.com/kairos-io/kairos/blob/master/.github/workflows/image-arm-pr.yaml#L19

@jimmykarily jimmykarily mentioned this pull request Sep 18, 2023
@mudler mudler requested a review from Itxaka September 18, 2023 09:14
@Itxaka
Copy link
Member

Itxaka commented Sep 18, 2023

tested this locally and it builds the image as expected buuuuut.... we dont set the output repo properly:

quay.io/kairos/core-alpine-arm-rpi:v2.4.0-5-gd252ef2

This means that if we build alpine-arm-rpi for both rpi3 and rpi4 they will get mixed and with no way of knowing which image is what...

@Itxaka
Copy link
Member

Itxaka commented Sep 18, 2023

This will probably need to wait for #1694 as we are renaming the repos, so we may do the distinction there somehow

@Itxaka Itxaka mentioned this pull request Sep 18, 2023
Ludea and others added 19 commits October 27, 2023 08:16
because the artifact names have changed in the last release and the
globbing of release-dowloader is not that smart

Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Ludea <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Ludea <[email protected]>
Signed-off-by: GitHub <[email protected]>
Co-authored-by: jimmykarily <[email protected]>
Signed-off-by: Ludea <[email protected]>
Co-authored-by: mudler <[email protected]>
Signed-off-by: Ludea <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Ludea <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Ludea <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Ludea <[email protected]>
after fix has been merged

Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Ludea <[email protected]>
bundles/kairos-overlay-files is now static/kairos-overlay-files

Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Ludea <[email protected]>
Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Ludea <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Ludea <[email protected]>
Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Ludea <[email protected]>
Signed-off-by: GitHub <[email protected]>
Co-authored-by: mudler <[email protected]>
Signed-off-by: Ludea <[email protected]>
Itxaka and others added 26 commits October 27, 2023 08:16
Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Ludea <[email protected]>
* Introduce RHEL family

- merges the files for rockylinux and almalinux into a rhel dockerfile
- decided not to add fedora into this since, it requires to add the epel packages, which might make fedora too close to rhel for our community users. But wonder what you think, is it a good/bad idea to try to also merge that one?

Clean up fedora dockerfile

- remove packages which are already installed by default "coreutils" and "curl"
- make it similar to the other dockerfiles for easier maintenance

Signed-off-by: Mauro Morales <[email protected]>

* Add fedora to rhel family

Signed-off-by: Mauro Morales <[email protected]>

* Introduce inbetween stage for readability

Signed-off-by: Mauro Morales <[email protected]>

---------

Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Ludea <[email protected]>
* Merge opnesuse families into one

Signed-off-by: Mauro Morales <[email protected]>

* Fix issue with rpi

Signed-off-by: Mauro Morales <[email protected]>

---------

Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Ludea <[email protected]>
Fix Dockerfile for ubuntu 20 lts non-hwe

Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Ludea <[email protected]>
Co-authored-by: Itxaka <[email protected]>
Signed-off-by: Ludea <[email protected]>
Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Ludea <[email protected]>
Apply base image fixes to arm

Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Ludea <[email protected]>
* Refactor flavors and dockerfiles

Fixes #1898

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Use FRAMEWORK_FLAVOR variable to avoid confusion with FLAVOR

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Fix pipeline by adding mandatory value

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Fix ubuntu Dockerfile

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Apply suggestions from code review

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Remove TODO (already implemented) and non-used ARG "IMAGE"

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Remove TODOs

moved here: #1897 (comment)

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Remove unecessary env variables and fix VARIANT_RELEASE missing

Signed-off-by: Dimitris Karakasilis <[email protected]>

* PR comments

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Remove naming.sh script from base image

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Make sure we use the "fixed" kairos version with the remove "+" symbols

when creating a tag for container images.

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Setup qemu and docker buildx in reusable-build-flavor workflow

because otherwise it fails to build rpi images

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Remove not needed env variables

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Remove temporary change

Signed-off-by: Dimitris Karakasilis <[email protected]>

---------

Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Co-authored-by: Mauro Morales <[email protected]>
Signed-off-by: Ludea <[email protected]>
Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Ludea <[email protected]>
Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Ludea <[email protected]>
Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Ludea <[email protected]>
Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Ludea <[email protected]>
Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Ludea <[email protected]>
* Introduce RHEL family

- merges the files for rockylinux and almalinux into a rhel dockerfile
- decided not to add fedora into this since, it requires to add the epel packages, which might make fedora too close to rhel for our community users. But wonder what you think, is it a good/bad idea to try to also merge that one?

Clean up fedora dockerfile

- remove packages which are already installed by default "coreutils" and "curl"
- make it similar to the other dockerfiles for easier maintenance

Signed-off-by: Mauro Morales <[email protected]>

* Add fedora to rhel family

Signed-off-by: Mauro Morales <[email protected]>

* Introduce inbetween stage for readability

Signed-off-by: Mauro Morales <[email protected]>

---------

Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Ludea <[email protected]>
* Merge opnesuse families into one

Signed-off-by: Mauro Morales <[email protected]>

* Fix issue with rpi

Signed-off-by: Mauro Morales <[email protected]>

---------

Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Ludea <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants