forked from pool/virt-launcher-container
Accepting request 947223 from Virtualization
OBS-URL: https://build.opensuse.org/request/show/947223 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virt-launcher-container?expand=0&rev=10
This commit is contained in:
commit
ed2ef029a1
36
Dockerfile
36
Dockerfile
@ -3,11 +3,16 @@
|
|||||||
#!BuildTag: %%TAGPREFIX%%/virt-launcher:%%PKG_VERSION%%.%RELEASE%
|
#!BuildTag: %%TAGPREFIX%%/virt-launcher:%%PKG_VERSION%%.%RELEASE%
|
||||||
#!BuildTag: %%TAGPREFIX%%/virt-launcher:%%PKG_VERSION%%-%%PKG_RELEASE%%
|
#!BuildTag: %%TAGPREFIX%%/virt-launcher:%%PKG_VERSION%%-%%PKG_RELEASE%%
|
||||||
|
|
||||||
|
#!ExclusiveArch: x86_64 aarch64
|
||||||
|
|
||||||
# virt-launcher container image
|
# virt-launcher container image
|
||||||
# KUBEVIRTFROM defined in prjconf, e.g.
|
# KUBEVIRTFROM defined in prjconf, e.g.
|
||||||
# BuildFlags: dockerarg:KUBEVIRTFROM=opensuse/tumbleweed
|
# BuildFlags: dockerarg:KUBEVIRTFROM=opensuse/tumbleweed
|
||||||
ARG KUBEVIRTFROM
|
ARG KUBEVIRTFROM
|
||||||
FROM $KUBEVIRTFROM
|
FROM $KUBEVIRTFROM
|
||||||
|
# TARGETARCH defined in prjconf, to handle architecture specific bits
|
||||||
|
# since TARGETARCH is not defined in OBS builds yet.
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
# labelprefix=%%LABELPREFIX%%
|
# labelprefix=%%LABELPREFIX%%
|
||||||
PREFIXEDLABEL org.opencontainers.image.title="kubevirt virt-launcher container"
|
PREFIXEDLABEL org.opencontainers.image.title="kubevirt virt-launcher container"
|
||||||
@ -29,21 +34,42 @@ RUN zypper -n install \
|
|||||||
libvirt-daemon-qemu \
|
libvirt-daemon-qemu \
|
||||||
nftables \
|
nftables \
|
||||||
qemu-tools \
|
qemu-tools \
|
||||||
qemu-x86 \
|
|
||||||
socat \
|
socat \
|
||||||
tar \
|
tar \
|
||||||
timezone \
|
timezone \
|
||||||
vim \
|
vim \
|
||||||
xorriso && \
|
xorriso
|
||||||
zypper clean -a && \
|
#!ArchExclusiveLine: x86_64
|
||||||
|
RUN if [ "$TARGETARCH" = "amd64" ]; then \
|
||||||
|
zypper -n install qemu-x86 ; \
|
||||||
|
fi;
|
||||||
|
|
||||||
|
#!ArchExclusiveLine: aarch64
|
||||||
|
RUN if [ "$TARGETARCH" = "arm64" ]; then \
|
||||||
|
zypper -n install \
|
||||||
|
qemu-arm \
|
||||||
|
qemu-uefi-aarch64 ; \
|
||||||
|
fi;
|
||||||
|
|
||||||
|
RUN zypper clean -a && \
|
||||||
mkdir -p /usr/share/kubevirt/virt-launcher
|
mkdir -p /usr/share/kubevirt/virt-launcher
|
||||||
|
|
||||||
RUN mkdir -p /usr/share/OVMF && \
|
RUN mkdir -p /usr/share/OVMF
|
||||||
|
|
||||||
|
#!ArchExclusiveLine: x86_64
|
||||||
|
RUN if [ "$TARGETARCH" = "amd64" ]; then \
|
||||||
ln -s ../qemu/ovmf-x86_64-code.bin /usr/share/OVMF/OVMF_CODE.fd && \
|
ln -s ../qemu/ovmf-x86_64-code.bin /usr/share/OVMF/OVMF_CODE.fd && \
|
||||||
ln -s ../qemu/ovmf-x86_64-vars.bin /usr/share/OVMF/OVMF_VARS.fd && \
|
ln -s ../qemu/ovmf-x86_64-vars.bin /usr/share/OVMF/OVMF_VARS.fd && \
|
||||||
ln -s ../qemu/ovmf-x86_64-code.bin /usr/share/OVMF/OVMF_CODE.cc.fd && \
|
ln -s ../qemu/ovmf-x86_64-code.bin /usr/share/OVMF/OVMF_CODE.cc.fd && \
|
||||||
ln -s ../qemu/ovmf-x86_64-smm-ms-code.bin /usr/share/OVMF/OVMF_CODE.secboot.fd && \
|
ln -s ../qemu/ovmf-x86_64-smm-ms-code.bin /usr/share/OVMF/OVMF_CODE.secboot.fd && \
|
||||||
ln -s ../qemu/ovmf-x86_64-smm-ms-vars.bin /usr/share/OVMF/OVMF_VARS.secboot.fd
|
ln -s ../qemu/ovmf-x86_64-smm-ms-vars.bin /usr/share/OVMF/OVMF_VARS.secboot.fd ; \
|
||||||
|
fi;
|
||||||
|
|
||||||
|
#!ArchExclusiveLine: aarch64
|
||||||
|
RUN if [ "$TARGETARCH" = "arm64" ]; then \
|
||||||
|
ln -s ../qemu/aavmf-aarch64-code.bin /usr/share/OVMF/AAVMF_CODE.fd && \
|
||||||
|
ln -s ../qemu/aavmf-aarch64-vars.bin /usr/share/OVMF/AAVMF_VARS.fd ; \
|
||||||
|
fi;
|
||||||
|
|
||||||
COPY augconf /augconf
|
COPY augconf /augconf
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 10 10:56:39 UTC 2022 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- Handle aarch64
|
||||||
|
- Enable build only on aarch64 and x86_64
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 10 09:52:56 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>
|
Mon Jan 10 09:52:56 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user