From b49fbfd1cfe632cebeb99e14a5a117337edd5ed1 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Thu, 14 Jan 2016 15:43:43 +0000 Subject: [PATCH] use image with qemu in, so as not to build every time as it is slow Signed-off-by: Justin Cormack --- Dockerfile | 4 +--- Dockerfile.armhf | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 29e71a151..7780755cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] diff --git a/Dockerfile.armhf b/Dockerfile.armhf index a8385aff3..35816d19c 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -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" ]