From dbf0d075bc489371d35fcf0f65b518fe288ff223 Mon Sep 17 00:00:00 2001 From: Audiobuzz Date: Sun, 14 Jun 2026 06:02:51 +0000 Subject: [PATCH] Fix build dependencies --- serving/spdk/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/serving/spdk/Dockerfile b/serving/spdk/Dockerfile index 1b08f82..91c5a94 100644 --- a/serving/spdk/Dockerfile +++ b/serving/spdk/Dockerfile @@ -24,10 +24,14 @@ RUN git clone --branch "${SPDK_VERSION}" --depth 1 "${SPDK_REPO}" /spdk \ # SPDK's own dependency installer (kernel headers, build tools, DPDK deps, # python for rpc.py, …). Then configure (TCP nvmf transport is in the default # build; trim the test artifacts) and build. -RUN /spdk/scripts/pkgdep.sh \ +# apt-get update first: the index was cleared above, and pkgdep.sh runs +# `apt-get install` without refreshing it (else "Unable to locate package …"). +RUN apt-get update \ + && /spdk/scripts/pkgdep.sh \ && cd /spdk \ && ./configure --disable-tests --disable-unit-tests \ - && make -j"$(nproc)" + && make -j"$(nproc)" \ + && rm -rf /var/lib/apt/lists/* # nvmf_tgt lives in build/bin; rpc.py in scripts/ (kept ON PATH so its relative # imports resolve from the source tree). spdk-setup.sh locates both via `command