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 ...@@ -3,34 +3,34 @@ ARG CC=gcc
ARG ENV1=FOOBAR ARG ENV1=FOOBAR
RUN apk update && apk add \ RUN apk update && apk add \
build-base \ $CC \
coreutils \ build-base \
git \ ccache \
protobuf-c-dev \ coreutils \
protobuf-dev \ git \
python \ libaio-dev \
libaio-dev \ libcap-dev \
libcap-dev \ libnet-dev \
libnl3-dev \ libnl3-dev \
pkgconfig \ pkgconfig \
libnet-dev \ protobuf-c-dev \
ccache \ protobuf-dev \
$CC python
COPY . /criu COPY . /criu
WORKDIR /criu WORKDIR /criu
ENV CC="ccache $CC" CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes 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 date && make -j $(nproc) CC="$CC" && date && ccache -s
# Run a test RUN apk add \
RUN apk add py-yaml \ py-yaml \
py-pip \ py-pip \
ip6tables \ ip6tables \
iptables \ iptables \
iproute2 \ iproute2 \
tar \ tar \
bash bash
RUN pip install protobuf ipaddr RUN pip install protobuf ipaddr
RUN make -C test/zdtm RUN make -C test/zdtm
ARG CC=gcc ARG CC=gcc
ARG ENV1=FOOBAR ARG ENV1=FOOBAR
RUN dnf install -y git gcc make RUN dnf install -y \
RUN dnf install -y protobuf-devel protobuf-c-devel libaio-devel libcap-devel libnl3-devel libnet-devel ccache \
RUN dnf install -y python ccache libasan findutils tar python-yaml protobuf-python iptables iproute python-ipaddr procps-ng 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 COPY . /criu
WORKDIR /criu WORKDIR /criu
ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes 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 date && make -j $(nproc) CC="$CC" && date && ccache -s
RUN make -C test/zdtm -j $(nproc) RUN make -C test/zdtm -j $(nproc)
...@@ -2,24 +2,24 @@ ARG CC=gcc ...@@ -2,24 +2,24 @@ ARG CC=gcc
ARG ENV1=FOOBAR ARG ENV1=FOOBAR
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
build-essential \ ccache \
protobuf-c-compiler \ libnet-dev \
libprotobuf-c0-dev \ libnl-route-3-dev \
libprotobuf-dev \ $CC \
bsdmainutils \ bsdmainutils \
protobuf-compiler \ build-essential \
python-minimal \ git-core \
libaio-dev \ iptables \
libcap-dev \ libaio-dev \
iptables \ libcap-dev \
libnl-3-dev \ libnl-3-dev \
libnl-route-3-dev \ libprotobuf-c0-dev \
libselinux-dev \ libprotobuf-dev \
pkg-config \ libselinux-dev \
git-core \ pkg-config \
libnet-dev \ protobuf-c-compiler \
ccache \ protobuf-compiler \
$CC python-minimal
COPY . /criu COPY . /criu
WORKDIR /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