1FROM centos:7.2.1511
2LABEL maintainer.name="The Xen Project" \
3      maintainer.email="xen-devel@lists.xenproject.org"
4
5# ensure we only get bits from the vault for
6# the version we want
7COPY CentOS-7.2.repo /etc/yum.repos.d/CentOS-Base.repo
8
9# install EPEL for dev86, xz-devel and possibly other packages
10RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
11        yum clean all
12
13RUN mkdir /build
14WORKDIR /build
15
16# work around https://github.com/moby/moby/issues/10180
17# and install Xen depends
18RUN rpm --rebuilddb && \
19    yum -y install \
20        yum-plugin-ovl \
21        gcc \
22        gcc-c++ \
23        ncurses-devel \
24        zlib-devel \
25        openssl-devel \
26        python-devel \
27        libuuid-devel \
28        pkgconfig \
29        gettext \
30        flex \
31        bison \
32        libaio-devel \
33        glib2-devel \
34        yajl-devel \
35        pixman-devel \
36        glibc-devel \
37        glibc-devel.i686 \
38        make \
39        binutils \
40        git \
41        wget \
42        acpica-tools \
43        python-markdown \
44        patch \
45        checkpolicy \
46        dev86 \
47        xz-devel \
48        bzip2 \
49        nasm \
50    && yum clean all
51