Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
Create arm64 isos
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed May 8, 2019
1 parent b977607 commit a019f2e
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 32 deletions.
6 changes: 3 additions & 3 deletions images/06-iso/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ ARG TAG
FROM ${REPO}/k3os-base:${TAG} as base
ARG VERSION
ARG ARCH
RUN apk add xorriso grub grub-efi mtools libvirt qemu-img ovmf
RUN apk add xorriso grub grub-efi mtools libvirt qemu-img
RUN if [ "$ARCH" == "amd64" ]; then \
apk add qemu-system-x86_64 grub-bios \
apk add qemu-system-x86_64 grub-bios ovmf \
;elif [ "$ARCH" == "arm64" ]; then \
apk add qemu-system-arm64 \
apk add qemu-system-aarch64 \
;fi
RUN ln -s /usr/bin/qemu-system-* /usr/bin/qemu-system
RUN qemu-img create -f qcow2 /hd.img 40G
Expand Down
27 changes: 0 additions & 27 deletions images/output/01-amd64/Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion images/output/01-amd64/archs

This file was deleted.

1 change: 0 additions & 1 deletion images/output/01-arm/archs

This file was deleted.

28 changes: 28 additions & 0 deletions images/output/01-full/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ARG REPO
ARG TAG
FROM ${REPO}/k3os-tar:${TAG} as tar

ARG REPO
ARG TAG
FROM ${REPO}/k3os-iso:${TAG} as iso

ARG REPO
ARG TAG
FROM ${REPO}/k3os-kernel:${TAG} as kernel

ARG REPO
ARG TAG
FROM ${REPO}/k3os-base:${TAG}
ARG ARCH

COPY --from=kernel /output/vmlinuz /output/k3os-vmlinuz-${ARCH}
COPY --from=kernel /output/initrd /output/k3os-initrd-${ARCH}
COPY --from=kernel /output/kernel.squashfs /output/k3os-kernel-${ARCH}.squashfs
COPY --from=kernel /output/version /output/k3os-kernel-version-${ARCH}
COPY --from=iso /output/k3os.iso /output/k3os-${ARCH}.iso

COPY --from=tar /output/ /usr/src/tar
COPY --from=kernel /output/initrd /usr/src/initrd/initrd

RUN mv /usr/src/tar/userspace.tar /output/k3os-rootfs-${ARCH}.tar && \
gzip /output/k3os-rootfs-${ARCH}.tar
1 change: 1 addition & 0 deletions images/output/01-full/archs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
amd64 arm64
File renamed without changes.
1 change: 1 addition & 0 deletions images/output/01-lite/archs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
arm

0 comments on commit a019f2e

Please sign in to comment.