Skip to content

Commit

Permalink
refactor: publish kernel in container root
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Case <[email protected]>
  • Loading branch information
richardcase committed Dec 18, 2024
1 parent 40288e5 commit eb50f90
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion kernel-ch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ RUN cp arch/x86/boot/compressed/vmlinux.bin ./output/vmlinux.bin&& \

FROM scratch
LABEL org.opencontainers.image.source=https://github.com/liquidmetal-dev/mikrolite-images
COPY --from=builder /usr/src/linux/output /boot
COPY --from=builder /usr/src/linux/output /
2 changes: 1 addition & 1 deletion kernel-fc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ RUN cp vmlinux /boot/vmlinux && \

FROM scratch
LABEL org.opencontainers.image.source=https://github.com/liquidmetal-dev/mikrolite-images
COPY --from=builder /boot /boot
COPY --from=builder /boot /
2 changes: 1 addition & 1 deletion kernel-k8s-ch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ RUN cp arch/x86/boot/compressed/vmlinux.bin ./output/vmlinux.bin&& \

FROM scratch
LABEL org.opencontainers.image.source=https://github.com/liquidmetal-dev/mikrolite-images
COPY --from=builder /usr/src/linux/output /boot
COPY --from=builder /usr/src/linux/output /
2 changes: 1 addition & 1 deletion kernel-k8s-fc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ RUN cp vmlinux /boot/vmlinux && \

FROM scratch
LABEL org.opencontainers.image.source=https://github.com/liquidmetal-dev/mikrolite-images
COPY --from=builder /boot /boot
COPY --from=builder /boot /
9 changes: 1 addition & 8 deletions rke2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
ARG RKE2_VERSION="v1.28.3+rke2r1"

# this is a temporary hack to ensure the kernel config is in the right place
# otherwise modprobe will fail. In the future we can mount the kernel image
# using cloud-init / ignition
FROM ghcr.io/liquidmetal-dev/cloudhypervisor-kernel:6.2 AS kernel

FROM ubuntu:22.04
LABEL org.opencontainers.image.source=https://github.com/liquidmetal-dev/mikrolite-images

Expand Down Expand Up @@ -41,6 +36,4 @@ RUN mkdir /root/rke2-artifacts && \
curl -OLs https://github.com/rancher/rke2/releases/download/${RKE2_VERSION}/sha256sum-amd64.txt && \
curl -sfL https://get.rke2.io --output install.sh

# To run the install: INSTALL_RKE2_ARTIFACT_PATH=/root/rke2-artifacts sh install.sh

COPY --from=kernel /boot /boot
# To run the install: INSTALL_RKE2_ARTIFACT_PATH=/root/rke2-artifacts sh install.sh

0 comments on commit eb50f90

Please sign in to comment.