Skip to content

Commit a5f8000

Browse files
committed
demo: do not install recommended packages in DPDK images
Signed-off-by: Mikko Ylinen <[email protected]>
1 parent 7857897 commit a5f8000

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

demo/crypto-perf/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR $DIR
55

66
RUN echo "deb-src http://deb.debian.org/debian unstable main" >> \
77
/etc/apt/sources.list.d/deb-src.list
8-
RUN apt-get update && apt-get install -y wget build-essential meson python3-pyelftools libnuma-dev python3-pip libssl-dev pkg-config dpkg-dev
8+
RUN apt-get update && apt-get install -y --no-install-recommends wget build-essential meson ninja-build python3-pyelftools libnuma-dev python3-pip libssl-dev pkg-config dpkg-dev
99

1010
# Download & unpack DPDK tarball
1111
ARG DPDK_TARBALL=dpdk-22.11.tar.xz
@@ -38,7 +38,7 @@ RUN mkdir -p /install_root/licenses/dpdk && \
3838
apt-get source --download-only -y libatomic1 libnuma1
3939

4040
FROM debian:sid-slim
41-
RUN apt-get update && apt-get install -y libssl3 libnuma1 libatomic1 && ldconfig -v
41+
RUN apt-get update && apt-get install -y --no-install-recommends libssl3 libnuma1 libatomic1 && ldconfig -v
4242
COPY --from=builder /install_root /
4343
COPY run-dpdk-test /usr/bin/
4444

demo/dlb-dpdk-demo/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ubuntu:20.04 as builder
33
ARG DIR=/dpdk-build
44
WORKDIR $DIR
55

6-
RUN apt-get update && apt-get install -y wget build-essential meson python3-pyelftools libnuma-dev python3-pip
6+
RUN apt-get update && apt-get install -y --no-install-recommends wget build-essential meson ninja-build python3-pyelftools libnuma-dev python3-pip
77

88
# Download & unpack DLB tarball
99
ARG DLB_TARBALL="dlb_linux_src_release8.0.0.txz"
@@ -25,7 +25,7 @@ RUN cd dpdk-* && patch -Np1 < $(echo ../dlb/dpdk/dpdk_dlb_*.patch) && sed -i 's/
2525
RUN cd dpdk-* && ninja -C builddir install && install -D builddir/app/dpdk-test-eventdev /install_root/usr/bin/dpdk-test-eventdev
2626

2727
FROM ubuntu:20.04
28-
RUN apt-get update && apt-get install -y libnuma1 libatomic1
28+
RUN apt-get update && apt-get install -y --no-install-recommends libnuma1 libatomic1
2929
COPY --from=builder /install_root /
3030
COPY test.sh /usr/bin/
3131

0 commit comments

Comments
 (0)