1
0
Dominique Leuenberger 2022-01-19 23:12:16 +00:00 committed by Git OBS Bridge
commit 4d42108015
2 changed files with 13 additions and 6 deletions

View File

@ -11,8 +11,8 @@
ARG KUBEVIRTFROM
FROM $KUBEVIRTFROM
# TARGETARCH defined in prjconf, to handle architecture specific bits
# since TARGETARCH is not defined in OBS builds yet.
ARG TARGETARCH
# since TARGETARCH is not defined in OBS builds yet. Default to amd64.
ARG TARGETARCH=amd64
# labelprefix=%%LABELPREFIX%%
PREFIXEDLABEL org.opencontainers.image.title="kubevirt virt-launcher container"
@ -39,17 +39,18 @@ RUN zypper -n install \
timezone \
vim \
xorriso
#!ArchExclusiveLine: x86_64
RUN if [ "$TARGETARCH" = "amd64" ]; then \
zypper -n install qemu-x86 ; \
fi;
zypper -n install qemu-x86 ; \
fi;
#!ArchExclusiveLine: aarch64
RUN if [ "$TARGETARCH" = "arm64" ]; then \
zypper -n install \
zypper -n install \
qemu-arm \
qemu-uefi-aarch64 ; \
fi;
fi;
RUN zypper clean -a && \
mkdir -p /usr/share/kubevirt/virt-launcher

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 19 06:48:50 UTC 2022 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Set default TARGETARCH=amd64
- Adjust indent
-------------------------------------------------------------------
Mon Jan 10 10:56:39 UTC 2022 - Guillaume GARDET <guillaume.gardet@opensuse.org>