This image will always track the latest CentOS 7.x release. Add this
container to containerize for easy access.
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
--- /dev/null
+FROM centos:7
+LABEL maintainer.name="The Xen Project" \
+ maintainer.email="xen-devel@lists.xenproject.org"
+
+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
+
+# install Xen depends
+RUN yum -y install \
+ gcc \
+ gcc-c++ \
+ ncurses-devel \
+ zlib-devel \
+ openssl-devel \
+ python-devel \
+ libuuid-devel \
+ pkgconfig \
+ gettext \
+ flex \
+ bison \
+ libaio-devel \
+ glib2-devel \
+ yajl-devel \
+ pixman-devel \
+ glibc-devel \
+ glibc-devel.i686 \
+ make \
+ binutils \
+ git \
+ wget \
+ acpica-tools \
+ python-markdown \
+ patch \
+ checkpolicy \
+ dev86 \
+ xz-devel \
+ bzip2 \
+ nasm \
+ && yum clean all && \
+ rm -rf /var/cache/yum
#
BASE="registry.gitlab.com/xen-project/xen"
case "_${CONTAINER}" in
+ _centos7) CONTAINER="${BASE}/centos:7" ;;
_centos72) CONTAINER="${BASE}/centos:7.2" ;;
_trusty) CONTAINER="${BASE}/ubuntu:trusty" ;;
_xenial) CONTAINER="${BASE}/ubuntu:xenial" ;;