Ana Guerrero 2023-07-13 15:19:05 +00:00 committed by Git OBS Bridge
commit 7531904366
2 changed files with 11 additions and 9 deletions

View File

@ -10,9 +10,6 @@
# BuildFlags: dockerarg:KUBEVIRTFROM=opensuse/tumbleweed
ARG KUBEVIRTFROM
FROM $KUBEVIRTFROM
# TARGETARCH defined in prjconf, to handle architecture specific bits
# since TARGETARCH is not defined in OBS builds yet. Default to amd64.
ARG TARGETARCH=amd64
# Mandatory labels for the build service:
# https://en.opensuse.org/Building_derived_containers
@ -57,15 +54,15 @@ RUN zypper -n install \
zerofree
#!ArchExclusiveLine: x86_64
RUN if [ "$TARGETARCH" = "amd64" ]; then \
zypper -n install qemu-x86 ; \
fi;
RUN if [ "$(uname -m)" = "x86_64" ]; then \
zypper -n install qemu-x86 ; \
fi;
# qemu-x86 is required on aarch64 to get the test to pass (allow fallback to non KVM mode)
#!ArchExclusiveLine: aarch64
RUN if [ "$TARGETARCH" = "arm64" ]; then \
zypper -n install qemu-arm qemu-uefi-aarch64 qemu-x86; \
fi;
RUN if [ "$(uname -m)" = "aarch64" ]; then \
zypper -n install qemu-arm qemu-uefi-aarch64 qemu-x86; \
fi;
# Make a "fixed appliance" for libguestfs.
# Note: the resulting 'appliance/root' is a sparse file. Docker does not

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 12 06:55:40 UTC 2023 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Drop TARGETARCH argument (detect arch during build)
-------------------------------------------------------------------
Thu Mar 2 18:15:49 UTC 2023 - Vasily Ulyanov <vasily.ulyanov@suse.com>