Commit 7c4ddebc authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrei Vagin

scripts/build/Dockerfiles: nitpicks

1. Sort lists of packages to be installed, unify indentation.

2. Merge "ccache -s" and "ccache -z".
Signed-off-by: 's avatarKir Kolyshkin <kolyshkin@gmail.com>
parent 0a4d8379
......@@ -3,34 +3,34 @@ ARG CC=gcc
ARG ENV1=FOOBAR
RUN apk update && apk add \
build-base \
coreutils \
git \
protobuf-c-dev \
protobuf-dev \
python \
libaio-dev \
libcap-dev \
libnl3-dev \
pkgconfig \
libnet-dev \
ccache \
$CC
$CC \
build-base \
ccache \
coreutils \
git \
libaio-dev \
libcap-dev \
libnet-dev \
libnl3-dev \
pkgconfig \
protobuf-c-dev \
protobuf-dev \
python
COPY . /criu
WORKDIR /criu
ENV CC="ccache $CC" CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
RUN mv .ccache /tmp && make mrproper && ccache -s && ccache -z &&\
RUN mv .ccache /tmp && make mrproper && ccache -sz && \
date && make -j $(nproc) CC="$CC" && date && ccache -s
# Run a test
RUN apk add py-yaml \
py-pip \
ip6tables \
iptables \
iproute2 \
tar \
bash
RUN apk add \
py-yaml \
py-pip \
ip6tables \
iptables \
iproute2 \
tar \
bash
RUN pip install protobuf ipaddr
RUN make -C test/zdtm
ARG CC=gcc
ARG ENV1=FOOBAR
RUN dnf install -y git gcc make
RUN dnf install -y protobuf-devel protobuf-c-devel libaio-devel libcap-devel libnl3-devel libnet-devel
RUN dnf install -y python ccache libasan findutils tar python-yaml protobuf-python iptables iproute python-ipaddr procps-ng
RUN dnf 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-ipaddr \
python-yaml \
tar
COPY . /criu
WORKDIR /criu
ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
RUN mv .ccache /tmp && make mrproper && ccache -s && ccache -z && \
RUN mv .ccache /tmp && make mrproper && ccache -sz && \
date && make -j $(nproc) CC="$CC" && date && ccache -s
RUN make -C test/zdtm -j $(nproc)
......@@ -2,24 +2,24 @@ ARG CC=gcc
ARG ENV1=FOOBAR
RUN apt-get update && apt-get install -y \
build-essential \
protobuf-c-compiler \
libprotobuf-c0-dev \
libprotobuf-dev \
bsdmainutils \
protobuf-compiler \
python-minimal \
libaio-dev \
libcap-dev \
iptables \
libnl-3-dev \
libnl-route-3-dev \
libselinux-dev \
pkg-config \
git-core \
libnet-dev \
ccache \
$CC
ccache \
libnet-dev \
libnl-route-3-dev \
$CC \
bsdmainutils \
build-essential \
git-core \
iptables \
libaio-dev \
libcap-dev \
libnl-3-dev \
libprotobuf-c0-dev \
libprotobuf-dev \
libselinux-dev \
pkg-config \
protobuf-c-compiler \
protobuf-compiler \
python-minimal
COPY . /criu
WORKDIR /criu
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment