From 47cfd6b5eccdaf7f2ea220a254fe6a5c3acd3304 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 5 Mar 2018 16:35:14 -0500 Subject: [PATCH] make layers smaller Signed-off-by: Jess Frazelle --- lkp-tests/Dockerfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lkp-tests/Dockerfile b/lkp-tests/Dockerfile index 7c4e90c..8793aaf 100644 --- a/lkp-tests/Dockerfile +++ b/lkp-tests/Dockerfile @@ -2,6 +2,8 @@ FROM debian:buster LABEL maintainer "Jessie Frazelle " 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 \ @@ -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 \ @@ -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 \ @@ -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