tools/qemu: Install ovmf for x86

The previous commit moved ovmf to the packages instead
of stashing it on the filesystem. This requires the
package to be installed here.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-07-26 15:22:35 +01:00
parent bf5a461ce5
commit 930c9c21df

View File

@ -1,4 +1,4 @@
FROM linuxkit/alpine:9bcf61f605ef0ce36cc94d59b8eac307862de6e1 AS mirror FROM linuxkit/alpine:77c8dfc5860012c869a19d7a2c68e701469692c8 AS mirror
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/ RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
RUN apk add --no-cache --initdb -p /out \ RUN apk add --no-cache --initdb -p /out \
alpine-baselayout \ alpine-baselayout \
@ -7,21 +7,12 @@ RUN apk add --no-cache --initdb -p /out \
qemu-img && \ qemu-img && \
case $(uname -m) in \ case $(uname -m) in \
x86_64) \ x86_64) \
apk add --no-cache --initdb -p /out qemu-system-x86_64; \ apk add --no-cache --initdb -p /out qemu-system-x86_64 ovmf; \
;; \ ;; \
aarch64) \ aarch64) \
apk add --no-cache --initdb -p /out qemu-system-aarch64; \ apk add --no-cache --initdb -p /out qemu-system-aarch64; \
;; \ ;; \
esac esac
RUN case $(uname -m) in \
x86_64) \
mkdir -p /out/usr/share/ovmf \
&& cp /usr/share/ovmf/bios.bin /out/usr/share/ovmf/bios.bin; \
;; \
aarch64) \
;; \
esac
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
FROM scratch FROM scratch