Files
xen/automation/build/debian/12-arm64v8.dockerfile
T
Andrew Cooper fdcc559661 CI: Swap ocaml-nox for ocaml in newer Debian/Ubuntu
Ocaml 4.08 and earlier had the compiler package depend on graphics, and
therefore on X.  Ocaml 4.09 and later dropped this dependency.

Debian and Ubuntu versions with Ocaml 4.08 and earlier (which are Debian
Bullseye/11, and Ubuntu Focal/20.04 and earlier) had ocaml-nox packages with
this dependency stripped, which we use to keep the size of the containers
down.

In newer versions of Debian and Ubuntu, ocaml-nox is just a transitional
package referring back to ocaml.  Ubuntu Resolute/26.04 has finally removed
this transitional package.  For all versions where ocaml-nox is just a
transitional package, swap to the ocaml package.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Denis Mukhin <dmukhin@ford.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
2026-06-08 14:06:40 +01:00

70 lines
1.3 KiB
Docker

# syntax=docker/dockerfile:1
FROM --platform=linux/arm64/v8 debian:bookworm-slim
LABEL maintainer.name="The Xen Project"
LABEL maintainer.email="xen-devel@lists.xenproject.org"
ENV DEBIAN_FRONTEND=noninteractive
RUN <<EOF
#!/bin/bash
set -eu
useradd --create-home user
apt-get update
DEPS=(
# Xen
bison
build-essential
checkpolicy
flex
# Tools (general)
ca-certificates
cpio
git-core
pkg-config
wget
# libxenguest dombuilder
libbz2-dev
liblzma-dev
liblzo2-dev
libzstd-dev
zlib1g-dev
# libacpi
acpica-tools
# libxl
libfdt-dev
libjson-c-dev
uuid-dev
# xentop
libncurses5-dev
# Python bindings
python3-dev
python3-setuptools
# Golang bindings
golang-go
# Ocaml bindings/oxenstored
ocaml
ocaml-findlib
# for test phase, qemu-* jobs
busybox-static
curl
device-tree-compiler
expect
file
ovmf
u-boot-qemu
u-boot-tools
)
apt-get -y --no-install-recommends install "${DEPS[@]}"
rm -rf /var/lib/apt/lists*
EOF
USER user
WORKDIR /build