mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +00:00
For python2/python3 compatibility install additional (python2-future) and different (python2-ipaddress) packages during test. Also switch Fedora tests to explicitly install versioned python packages (python2-* instead of python-*). Signed-off-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
38 lines
678 B
Docker
38 lines
678 B
Docker
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 \
|
|
python-ipaddress \
|
|
python2-future \
|
|
python-yaml \
|
|
tar \
|
|
which
|
|
|
|
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
|
|
RUN make -C test/zdtm -j $(nproc)
|