@@ -6,44 +6,67 @@ LABEL maintainer.name="The Xen Project" \
RUN mkdir /build
WORKDIR /build
-# work around https://github.com/moby/moby/issues/10180
-# and add EPEL for dev86
-RUN rpm --rebuilddb && \
- yum -y install \
- yum-plugin-ovl \
- epel-release \
- && yum clean all && \
- rm -rf /var/cache/yum
+RUN <<EOF
+ set -e
+
+ # Fix up Yum config now that mirror.centos.org doesn't exist
+ sed -e 's/mirror.centos.org/vault.centos.org/g' \
+ -e 's/^#.*baseurl=https\?/baseurl=https/g' \
+ -e 's/^mirrorlist=https\?/#mirrorlist=https/g' \
+ -i /etc/yum.repos.d/*.repo
+
+ # Add the EPEL repo to get dev86
+ yum -y install epel-release
+
+ # Update everything (Base container is out of date)
+ yum -y update
+
+ DEPS=(
+ # Xen
+ binutils
+ gcc
+ make
+ python
+ # Kconfig
+ bison
+ flex
+ # Flask
+ checkpolicy
+
+ # Tools (general)
+ git
+ gzip
+ patch
+ perl
+ pkgconfig
+ wget
+ # libxenguest dombuilder
+ bzip2-devel
+ lz4-devel
+ lzo-devel
+ xz-devel
+ zlib-devel
+ zstd-devel
+ # libacpi
+ acpica-tools
+ # libxl
+ libuuid-devel
+ yajl-devel
+ # RomBIOS
+ dev86
+ # Header Check
+ gcc-c++
+ # xentop
+ ncurses-devel
+ # Python bindings
+ python-devel
+
+ # Stubdom download/extract
+ bzip2
+ )
+
+ yum -y install "${DEPS[@]}"
-# install Xen depends
-RUN yum -y update \
- && yum -y install \
- gcc \
- gcc-c++ \
- ncurses-devel \
- zlib-devel \
- openssl-devel \
- python-devel \
- libuuid-devel \
- pkgconfig \
- flex \
- bison \
- libaio-devel \
- glib2-devel \
- yajl-devel \
- pixman-devel \
- glibc-devel \
- make \
- binutils \
- git \
- wget \
- acpica-tools \
- python-markdown \
- patch \
- checkpolicy \
- dev86 \
- xz-devel \
- bzip2 \
- nasm \
- && yum clean all && \
+ yum clean all
rm -rf /var/cache/yum
+EOF