2019-07-26 19:55:34 +02:00
|
|
|
FROM debian:bullseye-slim
|
2017-10-25 18:14:56 +02:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
|
2017-10-25 21:29:21 +02:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2018-03-05 22:35:14 +01:00
|
|
|
|
|
|
|
# install deps do this in sections so the layers are not mazzive
|
2017-10-25 19:19:15 +02:00
|
|
|
RUN dpkg --add-architecture i386 \
|
|
|
|
&& apt-get update && apt-get install -y \
|
|
|
|
automake \
|
|
|
|
bc \
|
2017-10-25 19:30:04 +02:00
|
|
|
binutils-dev \
|
|
|
|
bison \
|
2017-10-25 19:19:15 +02:00
|
|
|
build-essential \
|
|
|
|
bzip2 \
|
2017-10-25 18:14:56 +02:00
|
|
|
ca-certificates \
|
2017-10-25 19:19:15 +02:00
|
|
|
cpio \
|
|
|
|
fakeroot \
|
2017-10-25 19:30:04 +02:00
|
|
|
flex \
|
2017-10-25 19:19:15 +02:00
|
|
|
gawk \
|
2017-10-25 18:14:56 +02:00
|
|
|
gcc \
|
|
|
|
git \
|
2017-10-25 19:19:15 +02:00
|
|
|
gzip \
|
2018-03-05 20:16:54 +01:00
|
|
|
hdparm \
|
2018-03-05 19:41:07 +01:00
|
|
|
iperf \
|
2017-10-25 19:19:15 +02:00
|
|
|
kmod \
|
2018-03-05 22:35:14 +01:00
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2017-10-25 19:30:04 +02:00
|
|
|
libaudit-dev \
|
2018-03-05 20:28:04 +01:00
|
|
|
libbabeltrace-ctf-dev \
|
2017-10-25 19:19:15 +02:00
|
|
|
libc6-dev \
|
|
|
|
libc6-dev:i386 \
|
2017-10-25 19:30:04 +02:00
|
|
|
libdw-dev \
|
|
|
|
libiberty-dev \
|
2017-10-25 19:19:15 +02:00
|
|
|
libklibc-dev \
|
2017-10-25 19:30:04 +02:00
|
|
|
liblzma-dev \
|
|
|
|
libnuma-dev \
|
2018-03-05 20:28:04 +01:00
|
|
|
libperl-dev \
|
|
|
|
libslang2-dev \
|
|
|
|
libssl-dev \
|
2017-10-25 19:19:15 +02:00
|
|
|
libtool \
|
2017-10-25 19:30:04 +02:00
|
|
|
libunwind-dev \
|
2017-10-25 19:19:15 +02:00
|
|
|
linux-libc-dev \
|
|
|
|
linux-libc-dev:i386 \
|
|
|
|
linux-perf \
|
2018-03-05 22:35:14 +01:00
|
|
|
--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 \
|
2017-10-25 18:14:56 +02:00
|
|
|
make \
|
2017-10-25 21:29:21 +02:00
|
|
|
nfs-common \
|
2017-10-25 19:19:15 +02:00
|
|
|
openssl \
|
|
|
|
patch \
|
|
|
|
perl \
|
2018-03-05 19:41:07 +01:00
|
|
|
procps \
|
2017-10-25 21:29:21 +02:00
|
|
|
psmisc \
|
2018-03-05 20:28:04 +01:00
|
|
|
python-dev \
|
2017-10-25 19:19:15 +02:00
|
|
|
rsync \
|
2018-03-05 19:19:25 +01:00
|
|
|
rt-tests \
|
2017-10-25 19:19:15 +02:00
|
|
|
ruby \
|
|
|
|
ruby-dev \
|
|
|
|
sysstat \
|
2018-03-05 20:28:04 +01:00
|
|
|
systemtap-sdt-dev \
|
2017-10-25 19:19:15 +02:00
|
|
|
time \
|
|
|
|
wget \
|
2017-10-25 19:30:04 +02:00
|
|
|
zlib1g-dev \
|
2017-10-25 18:14:56 +02:00
|
|
|
--no-install-recommends \
|
2018-03-05 22:35:14 +01:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2017-10-25 18:14:56 +02:00
|
|
|
|
2017-10-25 21:29:21 +02:00
|
|
|
ENV KERNEL_VERSION v4.13
|
|
|
|
ENV LKP_GIT_WORK_TREE /usr/src/linux
|
|
|
|
RUN git clone -b "${KERNEL_VERSION}" https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git "${LKP_GIT_WORK_TREE}"
|
|
|
|
|
|
|
|
ENV LKP_SRC /usr/src/lkp-tests
|
|
|
|
RUN git clone https://github.com/fengguang/lkp-tests.git "${LKP_SRC}"
|
2017-10-25 18:14:56 +02:00
|
|
|
|
|
|
|
WORKDIR /usr/src/lkp-tests
|
|
|
|
|
|
|
|
RUN make install \
|
|
|
|
&& lkp install
|
|
|
|
|
2017-10-25 19:19:15 +02:00
|
|
|
COPY runbench /usr/local/bin/runbench
|
2017-10-25 18:14:56 +02:00
|
|
|
|
|
|
|
CMD [ "lkp" ]
|