1
0
mirror of https://github.com/kairos-io/kairos-agent.git synced 2025-05-09 08:46:58 +00:00

penguin: Split alpine images into dedicated channels ()

Depending on the kernel being used, we build now 2 distinct images
(alpine-opensuse-leap and alpine-ubuntu).

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>

Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
This commit is contained in:
Ettore Di Giacinto 2022-11-19 11:38:41 +01:00 committed by Itxaka
parent df33bc108d
commit e749b89831

View File

@ -171,7 +171,7 @@ framework:
dracut/sysext dracut/systemd-resolved
END
IF [ "$FLAVOR" = "alpine" ] || [ "$FLAVOR" = "alpine-arm-rpi" ]
IF [[ "$FLAVOR" =~ "alpine" ]]
RUN luet install -y --system-target /framework \
init-svc/openrc
ELSE
@ -180,10 +180,10 @@ framework:
END
# Keep openSUSE kernel on ARM
IF [ "$FLAVOR" = "opensuse-arm-rpi" ] || [ "$FLAVOR" = "alpine-arm-rpi" ]
IF [ "$FLAVOR" = "opensuse-arm-rpi" ] || [ "$FLAVOR" = "alpine-arm-rpi" ] || [ "$FLAVOR" = "alpine-opensuse-leap" ]
RUN luet install -y --system-target /framework \
distro-kernels/opensuse-leap distro-initrd/opensuse-leap
ELSE IF [ "$WITH_KERNEL" = "true" ] || [ "$FLAVOR" = "alpine" ]
ELSE IF [ "$WITH_KERNEL" = "true" ] || [ "$FLAVOR" = "alpine-ubuntu" ]
RUN luet install -y --system-target /framework \
distro-kernels/ubuntu distro-initrd/ubuntu
END
@ -238,10 +238,11 @@ docker:
RUN rm -rf /etc/machine-id && touch /etc/machine-id && chmod 444 /etc/machine-id
# Copy flavor-specific overlay files
IF [ "$FLAVOR" = "alpine" ]
COPY overlay/files-alpine/ /
ELSE IF [ "$FLAVOR" = "alpine-arm-rpi" ]
IF [[ "$FLAVOR" =~ "alpine" ]]
COPY overlay/files-alpine/ /
END
IF [ "$FLAVOR" = "alpine-arm-rpi" ]
COPY overlay/files-opensuse-arm-rpi/ /
ELSE IF [ "$FLAVOR" = "opensuse-arm-rpi" ]
COPY overlay/files-opensuse-arm-rpi/ /
@ -432,7 +433,7 @@ linux-bench-scan:
###
### Test targets
###
# usage e.g. ./earthly.sh +run-qemu-datasource-tests --FLAVOR=alpine --FROM_ARTIFACTS=true
# usage e.g. ./earthly.sh +run-qemu-datasource-tests --FLAVOR=alpine-opensuse-leap --FROM_ARTIFACTS=true
run-qemu-datasource-tests:
FROM opensuse/leap
WORKDIR /test