mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-24 02:29:23 +00:00
Our CentOS based CI run is based on CentOS 7. CentOS 8 exists already for some time and CentOS 7 will probably go end of life at some point. This adds a CentOS 8 based CI run to be prepared for the time CentOS 7 goes away. Signed-off-by: Adrian Reber <areber@redhat.com>
56 lines
1.1 KiB
Text
56 lines
1.1 KiB
Text
FROM registry.centos.org/centos/centos:8
|
|
|
|
ARG CC=gcc
|
|
ARG ENV1=FOOBAR
|
|
|
|
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm dnf-plugins-core
|
|
RUN yum config-manager --set-enabled PowerTools
|
|
RUN yum install -y --allowerasing \
|
|
asciidoc \
|
|
ccache \
|
|
coreutils \
|
|
chkconfig \
|
|
diffutils \
|
|
findutils \
|
|
gcc \
|
|
git \
|
|
gnutls-devel \
|
|
iproute \
|
|
iptables \
|
|
libaio-devel \
|
|
libasan \
|
|
libcap-devel \
|
|
libnet-devel \
|
|
libnl3-devel \
|
|
libselinux-devel \
|
|
make \
|
|
procps-ng \
|
|
protobuf-c-devel \
|
|
protobuf-devel \
|
|
python3-devel \
|
|
python3-flake8 \
|
|
python3-PyYAML \
|
|
python3-future \
|
|
python3-protobuf \
|
|
python3-pip \
|
|
sudo \
|
|
tar \
|
|
which \
|
|
xmlto
|
|
|
|
RUN alternatives --set python /usr/bin/python3
|
|
ENV PYTHON=python3
|
|
|
|
COPY . /criu
|
|
WORKDIR /criu
|
|
|
|
ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
|
|
RUN mv .ccache /tmp && make mrproper && ccache -sz && \
|
|
date && make -j $(nproc) CC="$CC" && date && ccache -s
|
|
|
|
# The rpc test cases are running as user #1000, let's add the user
|
|
RUN adduser -u 1000 test
|
|
|
|
RUN pip3 install junit_xml
|
|
|
|
RUN make -C test/zdtm -j $(nproc)
|