mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 01:37:42 +00:00 
			
		
		
		
	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 <rolf.neugebauer@docker.com>
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user