2018-05-10 02:54:35 +03:00
|
|
|
FROM centos:7
|
|
|
|
|
|
|
|
ARG CC=gcc
|
|
|
|
ARG ENV1=FOOBAR
|
|
|
|
|
|
|
|
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
|
|
|
RUN yum install -y \
|
|
|
|
ccache \
|
|
|
|
findutils \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
iproute \
|
|
|
|
iptables \
|
|
|
|
libaio-devel \
|
|
|
|
libasan \
|
|
|
|
libcap-devel \
|
|
|
|
libnet-devel \
|
|
|
|
libnl3-devel \
|
|
|
|
make \
|
|
|
|
procps-ng \
|
|
|
|
protobuf-c-devel \
|
|
|
|
protobuf-devel \
|
|
|
|
protobuf-python \
|
|
|
|
python \
|
2018-05-16 06:20:26 +00:00
|
|
|
python-ipaddress \
|
|
|
|
python2-future \
|
2018-06-02 00:03:00 +03:00
|
|
|
python2-junit_xml \
|
2018-05-10 02:54:35 +03:00
|
|
|
python-yaml \
|
2018-06-02 00:02:54 +03:00
|
|
|
python-six \
|
2018-06-21 21:10:38 +00:00
|
|
|
sudo \
|
2018-05-16 06:20:26 +00:00
|
|
|
tar \
|
2018-06-02 00:03:00 +03:00
|
|
|
which \
|
|
|
|
e2fsprogs \
|
|
|
|
python2-pip \
|
|
|
|
asciidoc xmlto
|
2018-05-10 02:54:35 +03:00
|
|
|
|
|
|
|
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
|
2018-06-28 12:43:28 +00:00
|
|
|
|
|
|
|
# The rpc test cases are running as user #1000, let's add the user
|
|
|
|
RUN adduser -u 1000 test
|
|
|
|
|
2018-05-10 02:54:35 +03:00
|
|
|
RUN make -C test/zdtm -j $(nproc)
|