From 63d50310353cc398d76f73fee2934ae8ed044bba Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Tue, 30 May 2017 14:06:08 +0100 Subject: [PATCH] tools: Add OVMF BIOS firmware to the Alpine base This ovmf package is part of the community repository. We don't want to "pollute" the Alpine base with it. Luckily it's juts a single file which we can install and then copy to the base image. The package is needed for qemu EFI boot. Signed-off-by: Rolf Neugebauer --- tools/alpine/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/alpine/Dockerfile b/tools/alpine/Dockerfile index c6ce018fa..6c543ed4e 100644 --- a/tools/alpine/Dockerfile +++ b/tools/alpine/Dockerfile @@ -24,6 +24,9 @@ RUN apk index --rewrite-arch $(uname -m) -o /mirror/$(uname -m)/APKINDEX.unsigne RUN cp /mirror/$(uname -m)/APKINDEX.unsigned.tar.gz /mirror/$(uname -m)/APKINDEX.tar.gz RUN abuild-sign /mirror/$(uname -m)/APKINDEX.tar.gz +# fetch OVMF for qemu EFI boot (this is not added as a package) +RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/edge/community ovmf + # set this as our repo RUN echo "/mirror" > /etc/apk/repositories && apk update @@ -44,6 +47,7 @@ COPY --from=mirror /etc/apk/repositories /etc/apk/repositories COPY --from=mirror /etc/apk/keys /etc/apk/keys/ COPY --from=mirror /mirror /mirror/ COPY --from=mirror /go/bin /go/bin/ +COPY --from=mirror /usr/share/ovmf/bios.bin /usr/share/ovmf/bios.bin COPY --from=mirror /Dockerfile /Dockerfile COPY --from=shellcheck /usr/local/bin/shellcheck /usr/local/bin/shellcheck