mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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>
53 lines
948 B
Docker
53 lines
948 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM --platform=linux/i386 debian:trixie-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
|
|
clang
|
|
flex
|
|
|
|
# Tools (general)
|
|
ca-certificates
|
|
cpio
|
|
git-core
|
|
pkg-config
|
|
wget
|
|
# libacpi
|
|
acpica-tools
|
|
# libxl
|
|
uuid-dev
|
|
libyajl-dev
|
|
# xentop
|
|
libncurses5-dev
|
|
# Python bindings
|
|
python3-dev
|
|
python3-setuptools
|
|
# Ocaml bindings/oxenstored
|
|
ocaml
|
|
ocaml-findlib
|
|
)
|
|
|
|
apt-get -y --no-install-recommends install "${DEPS[@]}"
|
|
|
|
rm -rf /var/lib/apt/lists*
|
|
EOF
|
|
|
|
USER user
|
|
WORKDIR /build
|
|
ENTRYPOINT ["linux32"]
|