Skip to content

Commit

Permalink
make layers smaller
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Mar 5, 2018
1 parent 81874bb commit 47cfd6b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lkp-tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM debian:buster
LABEL maintainer "Jessie Frazelle <[email protected]>"

ENV DEBIAN_FRONTEND noninteractive

# install deps do this in sections so the layers are not mazzive
RUN dpkg --add-architecture i386 \
&& apt-get update && apt-get install -y \
automake \
Expand All @@ -22,6 +24,10 @@ RUN dpkg --add-architecture i386 \
hdparm \
iperf \
kmod \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y \
libaudit-dev \
libbabeltrace-ctf-dev \
libc6-dev \
Expand All @@ -39,6 +45,11 @@ RUN dpkg --add-architecture i386 \
linux-libc-dev \
linux-libc-dev:i386 \
linux-perf \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& ln -snf /usr/bin/perf_4.9 /usr/bin/perf

RUN apt-get update && apt-get install -y \
make \
nfs-common \
openssl \
Expand All @@ -57,8 +68,7 @@ RUN dpkg --add-architecture i386 \
wget \
zlib1g-dev \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& ln -snf /usr/bin/perf_4.9 /usr/bin/perf
&& rm -rf /var/lib/apt/lists/*

ENV KERNEL_VERSION v4.13
ENV LKP_GIT_WORK_TREE /usr/src/linux
Expand Down

0 comments on commit 47cfd6b

Please sign in to comment.