use image with qemu in, so as not to build every time as it is slow

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
Justin Cormack 2016-01-14 15:43:43 +00:00
parent 86bf66dc25
commit b49fbfd1cf
2 changed files with 2 additions and 6 deletions

View File

@ -1,10 +1,8 @@
FROM alpine:3.3
FROM justincormack/alpine-qemu
COPY alpine/initrd.img .
COPY alpine/kernel/vmlinuz64 .
RUN apk update && apk add qemu-system-x86_64
RUN gzip -9 initrd.img
ENTRYPOINT [ "qemu-system-x86_64", "-serial", "stdio", "-kernel", "vmlinuz64", "-initrd", "initrd.img.gz", "-m", "256", "-append", "earlyprintk=serial console=ttyS0 noapic", "-vnc", "none" ]

View File

@ -1,11 +1,9 @@
FROM ubuntu:15.10
FROM justincormack/alpine-qemu
COPY alpine/initrd-arm.img .
COPY alpine/kernel/zImage .
COPY alpine/kernel/dtb .
RUN apt-get update && apt-get install -y qemu-system-arm
RUN gzip -9 initrd-arm.img
ENTRYPOINT [ "qemu-system-arm", "-machine", "vexpress-a15", "-cpu", "cortex-a15", "-no-reboot", "-serial", "stdio", "-kernel", "zImage", "-initrd", "initrd-arm.img.gz", "-dtb", "dtb", "-m", "256", "-append", "console=ttyAMA0,38400n8", "-vnc", "none" ]