| 1 |
# syntax=docker/dockerfile:1 |
| 2 |
FROM --platform=linux/amd64 opensuse/leap:15.6 |
| 3 |
LABEL maintainer.name="The Xen Project" |
| 4 |
LABEL maintainer.email="[email protected]" |
| 5 |
|
| 6 |
ENV PYTHON=python3.11 |
| 7 |
ENV XEN_TARGET_ARCH=x86_64 |
| 8 |
|
| 9 |
RUN <<EOF |
| 10 |
#!/bin/bash |
| 11 |
set -e |
| 12 |
|
| 13 |
useradd --create-home user |
| 14 |
|
| 15 |
zypper refresh |
| 16 |
zypper update -y --no-recommends |
| 17 |
|
| 18 |
DEPS=( |
| 19 |
# Xen |
| 20 |
bison |
| 21 |
checkpolicy |
| 22 |
clang |
| 23 |
diffutils |
| 24 |
findutils |
| 25 |
flex |
| 26 |
gawk |
| 27 |
gcc |
| 28 |
make |
| 29 |
python311 |
| 30 |
|
| 31 |
# Tools (general) |
| 32 |
git-core |
| 33 |
gzip |
| 34 |
patch |
| 35 |
perl |
| 36 |
pkg-config |
| 37 |
wget |
| 38 |
# libxenguest dombuilder |
| 39 |
'pkgconfig(bzip2)' |
| 40 |
'pkgconfig(libzstd)' |
| 41 |
'pkgconfig(lzo2)' |
| 42 |
'pkgconfig(liblzma)' |
| 43 |
'pkgconfig(zlib)' |
| 44 |
# libacpi |
| 45 |
acpica |
| 46 |
# libxl |
| 47 |
'pkgconfig(uuid)' |
| 48 |
'pkgconfig(yajl)' |
| 49 |
# RomBIOS |
| 50 |
bin86 |
| 51 |
dev86 |
| 52 |
# Header Check |
| 53 |
gcc-c++ |
| 54 |
# xentop |
| 55 |
'pkgconfig(ncurses)' |
| 56 |
# Python bindings |
| 57 |
python311-devel |
| 58 |
python311-setuptools |
| 59 |
# Ocaml bindings/oxenstored |
| 60 |
ocaml |
| 61 |
ocaml-findlib |
| 62 |
|
| 63 |
# Stubdom (download/extract) |
| 64 |
bzip2 |
| 65 |
tar |
| 66 |
|
| 67 |
# Qemu build |
| 68 |
meson |
| 69 |
ninja |
| 70 |
'pkgconfig(glib-2.0)' |
| 71 |
'pkgconfig(pixman-1)' |
| 72 |
python311-packaging |
| 73 |
) |
| 74 |
|
| 75 |
zypper install -y --no-recommends "${DEPS[@]}" |
| 76 |
zypper clean -a |
| 77 |
EOF |
| 78 |
|
| 79 |
USER user |
| 80 |
WORKDIR /build |