| 1 |
# syntax=docker/dockerfile:1 |
| 2 |
FROM --platform=linux/amd64 centos:7 |
| 3 |
LABEL maintainer.name="The Xen Project" \ |
| 4 |
maintainer.email="[email protected]" |
| 5 |
|
| 6 |
RUN mkdir /build |
| 7 |
WORKDIR /build |
| 8 |
|
| 9 |
RUN <<EOF |
| 10 |
set -e |
| 11 |
|
| 12 |
# Fix up Yum config now that mirror.centos.org doesn't exist |
| 13 |
sed -e 's/mirror.centos.org/vault.centos.org/g' \ |
| 14 |
-e 's/^#.*baseurl=https\?/baseurl=https/g' \ |
| 15 |
-e 's/^mirrorlist=https\?/#mirrorlist=https/g' \ |
| 16 |
-i /etc/yum.repos.d/*.repo |
| 17 |
|
| 18 |
# Add the EPEL repo to get dev86 |
| 19 |
yum -y install epel-release |
| 20 |
|
| 21 |
# Update everything (Base container is out of date) |
| 22 |
yum -y update |
| 23 |
|
| 24 |
DEPS=( |
| 25 |
# Xen |
| 26 |
binutils |
| 27 |
gcc |
| 28 |
make |
| 29 |
python |
| 30 |
# Kconfig |
| 31 |
bison |
| 32 |
flex |
| 33 |
# Flask |
| 34 |
checkpolicy |
| 35 |
|
| 36 |
# Tools (general) |
| 37 |
git |
| 38 |
gzip |
| 39 |
patch |
| 40 |
perl |
| 41 |
pkgconfig |
| 42 |
wget |
| 43 |
# libxenguest dombuilder |
| 44 |
bzip2-devel |
| 45 |
lz4-devel |
| 46 |
lzo-devel |
| 47 |
xz-devel |
| 48 |
zlib-devel |
| 49 |
zstd-devel |
| 50 |
# libacpi |
| 51 |
acpica-tools |
| 52 |
# libxl |
| 53 |
libuuid-devel |
| 54 |
yajl-devel |
| 55 |
# RomBIOS |
| 56 |
dev86 |
| 57 |
# Header Check |
| 58 |
gcc-c++ |
| 59 |
# xentop |
| 60 |
ncurses-devel |
| 61 |
# Python bindings |
| 62 |
python-devel |
| 63 |
|
| 64 |
# Stubdom download/extract |
| 65 |
bzip2 |
| 66 |
) |
| 67 |
|
| 68 |
yum -y install "${DEPS[@]}" |
| 69 |
|
| 70 |
yum clean all |
| 71 |
rm -rf /var/cache/yum |
| 72 |
EOF |