Commit Graph

146 Commits

Author SHA1 Message Date
Itxaka
ba72c14346
Add extended version command (#37) 2023-06-05 12:40:23 +02:00
Mauro Morales
eb33870a54
Merge pull request #21 from kairos-io/use-kairos-docs-repo
Use kairos-docs repo to generate docs
2023-05-17 09:54:16 +02:00
Mauro Morales
2b13623656
adapt destination path
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-17 09:48:37 +02:00
Mauro Morales
7198dd5826
Fix path of artifact
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-17 09:08:15 +02:00
Itxaka
7f703ae588
🤖 Use cypress container for webui tests (#22) 2023-05-16 16:30:04 +02:00
Itxaka
ddfa30a4c6
Drop luet, image extractor, drop build code and multiarch images (#20)
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-16 16:06:49 +02:00
Mauro Morales
1ad2ba7332
Use kairos-docs repo to generate docs
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-15 14:03:21 +02:00
Itxaka
002b8ba51f
Bring elemental-cli code into the agent (#13) 2023-05-05 18:43:21 +02:00
Itxaka
8de8349a36 First pass at standalone kairos-agent
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-24 12:08:37 +02:00
Mauro Morales
8ab177d3a5 seedling: Prefix variable names with distro name in os-release (#1263)
* Use site variables to update image flavor and name

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Typo

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Prefix variable names with distro name in os-release

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Adapt tests to read os-release with prefix

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Adapt docs to show how to read os-release with prefix

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Update SDK to be aware of attr prefixes

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Adapt test with new variable names

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Temporarily print the os-release

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Check KAIROS_VERSION on tests and fallback to VERSION

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Match kubo ID and VERSION_ID

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Make kubo extension match any ID

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Test still fails, trying with surrounding quotes

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Reduce tests wait time

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Use tumbleweed for bundles tests

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Update docs about systemd-sysext

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* reduce wait time in reset tests

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-04-19 22:37:00 +02:00
renovate[bot]
5ffefac855 Update quay.io/kairos/osbuilder-tools Docker tag to v0.6.1 (#1318)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-18 23:43:04 +02:00
Itxaka
7abcd26431 robot: Add cypress tests for web UI (#1269) 2023-04-18 18:09:48 +02:00
Itxaka
ef1b632b40 robot: Release arm generic artifacts on release (#1315)
* 🤖 Release arm generic artifacts on release

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Update release-arm.yaml

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-18 13:55:59 +02:00
renovate[bot]
8a97b00af3 Update aquasec/trivy Docker tag to v0.40.0 (#1307)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-18 11:43:04 +02:00
Itxaka
d08fda2f21 bug: Fix rpi initrd not being linked (#1309) 2023-04-17 13:11:15 +02:00
Itxaka
3aa5ec4899 seedling: Generic arm64 isos (#1291)
🌱 Generate arm64 generic isos

 - Use latest osbuilder tools image as it contains fixes for arm64 isos
 - Add a small job to build an iso as part of the image arm workflow
 - Rework /boot/vmlinuz linking so it works on x86 and arm64

This also adds an iso-remote target for earthfile that allows to build
an iso from a remote rootfs in the shape of a docker artifact. This
allows for easy reproduce of isos based on existing artifacts instead of
having to rebuild the whole thing. You point to the artifact and it
spits an iso really fast. Also works with arm64 artifacts so we can
easily build a local arm64 iso for testing for pushed artifacts.

This PR makes it so generation of isos for arm64 works.

Signed-off-by: Itxaka <itxakaserrano@gmail.com>
2023-04-15 17:06:22 +02:00
renovate[bot]
9aa783f633 Update quay.io/kairos/osbuilder-tools Docker tag to v0.6.0 (#1293)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-14 10:07:42 +02:00
Mauro Morales
70ec86597d Pass VERSION flag including v2 in path (#1290)
* Pass VERSION flag including v2 in path

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Pass VERSION flag including v2 in path for goreleaser

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-04-13 19:44:19 +02:00
renovate[bot]
2f8948edda Update aquasec/trivy Docker tag to v0.39.1 (#1268)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-10 08:49:09 +02:00
Mauro Morales
8f50f798e2 robot: Add version to goreleaser (#1252)
* Add version to goreleaser

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* do not remove github token

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* include version in dist target

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Add missing flag to pass the version

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-04-05 12:24:19 +02:00
renovate[bot]
0b5c162f2a Update aquasec/trivy Docker tag to v0.39.0 (#1236)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 11:08:35 +02:00
Mauro Morales
e5dae4e9c4 arrow_up: Bump go in Earthly and workflows to ^1.20 (#1213)
* Bump go in Earthly and workflows to ^1.20

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Update go.mod version

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Lint

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Remove pin of go version to get the latest

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Remove minor version

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-03-30 16:42:25 +02:00
Mauro Morales
77697af24f bug: Pass version to build of kairos agent (#1205)
Pass version to build of kairos agent

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-03-28 20:09:57 +02:00
Itxaka
09c6ed1538 bug: Fix validator on long strings (#1194)
* 🐛 Fix validator on long strings

Validator was mistakenly identifying a long yaml as a file and trying to
open it, which failed with an error of filename too long.

This was not catched in order to identify that the source is not a file
but a yaml, so it was directly returning the error.

This patch adds that error to the list in order ot identify the source
to validate as yaml. Also adds a couple of tests for this functionality.

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* 🐛 Merge initramfs generation between distros

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-28 18:20:56 +02:00
Itxaka
90ddda716e robot: Move repo bump to earthly (#1183)
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-23 15:28:56 +01:00
Itxaka
1fc9a53e19 robot: Improve golang CI runs (#1165) 2023-03-17 16:45:43 +01:00
Itxaka
bd20a74349 sparkles: Use kairos-sdk module (#1140) 2023-03-15 15:45:00 +01:00
renovate[bot]
a406cd83fe Update aquasec/trivy Docker tag to v0.38.3 (#1096)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 13:19:17 +01:00
renovate[bot]
16ed6c2e1a Update quay.io/kairos/osbuilder-tools Docker tag to v0.5.3 (#1095)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 10:40:10 +01:00
renovate[bot]
dfc3cc48ea Update renovate/renovate Docker tag to v35 (#1105)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 10:39:28 +01:00
Ettore Di Giacinto
b2d6fc5d7e robot: Various enhancement to security scans (#1100)
* 🤖 Add --add-cpes-if-none to grype

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Remove dup

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Scan from base-image

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Move ARGs where are needed

Signed-off-by: mudler <mudler@c3os.io>

---------

Signed-off-by: mudler <mudler@c3os.io>
2023-03-10 18:11:48 +01:00
Ettore Di Giacinto
199f7fff43 robot: Fixup trivy scans (#1093)
* 🐧 Delete any files dangling in /tmp

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Skip /tmp scan in trivy

Signed-off-by: mudler <mudler@c3os.io>

---------

Signed-off-by: mudler <mudler@c3os.io>
2023-03-10 14:28:14 +01:00
Ettore Di Giacinto
2b87d05def robot: Pin trivy version (#1090)
Fixes: #1087

Signed-off-by: mudler <mudler@c3os.io>
2023-03-10 10:21:32 +01:00
Itxaka
6ded118d76 robot: Update immucore dev testing (#1059)
There is now less files to copy over

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-09 18:57:00 +01:00
Jacob Payne
5537ee1062 added zfs tests
Signed-off-by: Jacob Payne <jacob@spectrocloud.com>
2023-01-25 15:58:08 -07:00
Jacob Payne
dffbd9f327 added zfs packages to all images
Signed-off-by: Jacob Payne <jacob@spectrocloud.com>
2023-01-18 09:15:35 -07:00
Ettore Di Giacinto
557941fe55 robot: Add grype scan reports (#1057)
Signed-off-by: mudler <mudler@c3os.io>
2023-03-08 09:13:08 +01:00
Ettore Di Giacinto
ca7576c1fe robot: Fixup test targets (#1034)
We were listing on a dir that now doesn't exist necessarly anymore, and
when picking up the iso from latest release, we are selectively
pickingone flavor for the upgrade test.

Signed-off-by: mudler <mudler@c3os.io>
2023-03-03 23:27:41 +01:00
Dimitris Karakasilis
c0afc41fe4 Point ginkgo to the absolute path of the iso
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-03-03 20:42:49 +02:00
Dimitris Karakasilis
bd2dcd9300 Stop deleting the .earthlyignore and use PREBUILT_ISO ARG instead
Signed-off-by: Ettore Di Giacinto <ettore@spectrocloud.com>
2023-03-03 17:48:20 +02:00
Ettore Di Giacinto
ed7f6c989f Fix bundle tests
The `rm` we did, made the repo "dirty" thus changing the kubo extention
version. This result in a kubo version that doesn't match the one in
/etc/os-release, so systemd-sysext doesn't show the extension.

https://www.freedesktop.org/software/systemd/man/systemd-sysext.html#Options

Fixes: https://github.com/kairos-io/kairos/issues/1029

Signed-off-by: Dimitris Karakasilis <dimitris@spectrocloud.com>
2023-03-03 15:54:32 +02:00
Ettore Di Giacinto
5419e568cc seedling: Make sure to remove generated keys during setup (#1027)
Signed-off-by: mudler <mudler@c3os.io>
2023-03-03 13:57:43 +01:00
Ettore Di Giacinto
ae917ce581 robot: Attach trivy scan reports (#1019)
Signed-off-by: mudler <mudler@c3os.io>
2023-03-02 18:37:00 +01:00
Ettore Di Giacinto
ace91a321c robot: Use VARIANT, output SBOM to build (#1017)
🤖 Use VARIANT, output to build

Signed-off-by: mudler <mudler@c3os.io>
2023-03-02 16:47:52 +01:00
Itxaka
11f1c542a5 robot: Allow testing immucore from branches (#989)
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-02 15:46:15 +01:00
Itxaka
fb3bb69a62 robot: Fix some tests rebuilding the iso (#980) 2023-03-02 14:29:40 +01:00
Ettore Di Giacinto
8759d62259 robot: Add SBOM artifacts to CI pipelines (#998)
* 🤖 Add image-sbom target

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Add image-sbom to main targets

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Add SBOM artifacts to pipelines

Signed-off-by: mudler <mudler@c3os.io>

---------

Signed-off-by: mudler <mudler@c3os.io>
2023-03-02 09:43:30 +01:00
Itxaka
b6bd105880 warning: 🎨 Use immucore 🦔 (#877)
* ⚠️ 🎨  Use immucore

Build kairos with immmucore instead of cos-immutable-rootfs

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* 🐛 Fix state sdk

State sdk is using ghw to identify the state of the disks, but
unfortunately ghw only works with devices and not with labels

This patch adds a workaround by checking deeper for partitions that
migth not have mountpoints reported by ghw but are indeed mounted

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* 🐛 Fix state not catching netboot properly

This worked with the old cos-immutable-rootfs due to the rd.cos.disable
stanza in cmdline making the livecd cloud config file trigger, which
created the livecd sentinel file.

With immucore, the sentinel is being created during initramfs directly
so we need to rely on the cmdline to identify it.

State sdk should know that having the netboot stanza should identify the
boot as cdlive

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Fix custom binds set as RW_PATHS

RW_PATHS are meant for overlay dirs which go away after a reboot.
Custom binds/binds are mounted under COS_PERSISTENT, so they persist
after reboot AND are RW by default.

This patch removes adding the custom binds into the RW_PATHS on the
cos-layout file as that can lead to unintended consequences

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Dont run custom mounts on livecd and recovery

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Rework writing custom ephemeral/binds

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Maybe fix tests

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Add missing sgdisk to ubuntu images

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* 🐛 Backport dracut patch for ubuntu 20 iscsi

There was an issue with dracut 48 in which the iscsid.socket required fs
targets to be ready. On an iso this could lead to a dependency cycle
between the dmsquash module setting up the livecd rootfs and the iscsi
socket required the initrd-fs to be ready.

This was fixed on dracut 50 and its what this patch brings, dropping the
socket dependency on the fs target so it can break the dependency cycle.

This only affect ubuntu 20 lts, and only affects booting from the iso.
Alos the issue is random as systemd will decide to break the dependency
in a non predictable way by disabling one of the services that conflict,
so sometimes it would be the iscsi serviec, which would make the iso
boot but sometimes it could be other more important services liek teh
local fs or the dracut pre-mount services.

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
(cherry picked from commit 63f0c75d69ab3adca143f917c2e31b75ca3d96c7)

* Bump immucore

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
2023-03-01 00:02:10 +01:00
Ettore Di Giacinto
91aa007abb seedling: Create framework images for each flavor (#973)
* 🌱 Create framework images for each flavor

Signed-off-by: mudler <mudler@c3os.io>

* 🌱 Add base cloud config files from packages

Signed-off-by: mudler <mudler@c3os.io>

* 🐧 No need to import base cloud config anymore from repositories

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Build latest framework images

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Simplify workflow flavors

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Make linter happy

Signed-off-by: mudler <mudler@c3os.io>

* 🐛 correctly parse the flavor

Signed-off-by: mudler <mudler@c3os.io>

* 🐛 Fixup copying overlay files in the correct location

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Set http registry in the self-hosted runner

Signed-off-by: mudler <mudler@c3os.io>

---------

Signed-off-by: mudler <mudler@c3os.io>
2023-02-28 17:58:17 +01:00
Ettore Di Giacinto
74ddd9db88 bug: Add back gdisk to ubuntu/debian images (#959)
* 🐛 Add back gdisk to ubuntu/debian images

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 No need to install mkisofs here

Signed-off-by: mudler <mudler@c3os.io>

---------

Signed-off-by: mudler <mudler@c3os.io>
2023-02-24 13:05:38 +01:00