mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Commitb5739330d7introduced the use of heredocs in the jessie/stretch dockerfiles. It turns out this was introduced by BuildKit in 2018 along with a standardisation of Dockerfile syntax, and has subsequently been adopted by the docker community. Annotate all dockerfiles with a statement of the syntax in use, and extend README.md details including how to activate BuildKit when it's available but off by default. This allows the containers to be rebuilt following commita0e29b3163("CI: Drop glibc-i386 from the build containers"). Fixes:b5739330d7("automation: fix jessie/stretch images to use archive.debian.org apt repos") Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Roger Pau Monné <roger.pau@citrix.com> Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
78 lines
2.3 KiB
Docker
78 lines
2.3 KiB
Docker
# syntax=docker/dockerfile:1
|
|
FROM --platform=linux/arm64/v8 debian:bookworm
|
|
LABEL maintainer.name="The Xen Project" \
|
|
maintainer.email="xen-devel@lists.xenproject.org"
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV QEMU_VERSION=6.0.0
|
|
ENV USER root
|
|
|
|
RUN mkdir /build
|
|
WORKDIR /build
|
|
|
|
# build depends
|
|
RUN apt-get update && \
|
|
apt-get --quiet --yes install \
|
|
build-essential \
|
|
curl \
|
|
python3 \
|
|
ninja-build \
|
|
pkg-config \
|
|
libglib2.0-dev \
|
|
libpixman-1-dev \
|
|
&& \
|
|
\
|
|
curl -fsSLO https://download.qemu.org/qemu-"$QEMU_VERSION".tar.xz && \
|
|
tar xvJf qemu-"$QEMU_VERSION".tar.xz && \
|
|
cd qemu-"$QEMU_VERSION" && \
|
|
./configure \
|
|
--target-list=arm-softmmu,aarch64-softmmu \
|
|
--enable-system \
|
|
--disable-blobs \
|
|
--disable-bsd-user \
|
|
--disable-debug-info \
|
|
--disable-glusterfs \
|
|
--disable-gtk \
|
|
--disable-guest-agent \
|
|
--disable-linux-user \
|
|
--disable-sdl \
|
|
--disable-spice \
|
|
--disable-tpm \
|
|
--disable-vhost-net \
|
|
--disable-vhost-scsi \
|
|
--disable-vhost-user \
|
|
--disable-vhost-vsock \
|
|
--disable-virtfs \
|
|
--disable-vnc \
|
|
--disable-werror \
|
|
--disable-xen \
|
|
--disable-safe-stack \
|
|
--disable-libssh \
|
|
--disable-opengl \
|
|
--disable-tools \
|
|
--disable-virglrenderer \
|
|
--disable-stack-protector \
|
|
--disable-containers \
|
|
--disable-replication \
|
|
--disable-cloop \
|
|
--disable-dmg \
|
|
--disable-vvfat \
|
|
--disable-vdi \
|
|
--disable-parallels \
|
|
--disable-qed \
|
|
--disable-bochs \
|
|
--disable-qom-cast-debug \
|
|
--disable-vhost-vdpa \
|
|
--disable-vhost-kernel \
|
|
--disable-qcow1 \
|
|
--disable-live-block-migration \
|
|
&& \
|
|
make -j$(nproc) && \
|
|
cp ./build/qemu-system-aarch64 / && \
|
|
cp ./build/qemu-system-arm / && \
|
|
cd /build && \
|
|
rm -rf qemu-"$QEMU_VERSION"* && \
|
|
apt-get autoremove -y && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*
|