Fix build dependencies
This commit is contained in:
@@ -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,
|
# SPDK's own dependency installer (kernel headers, build tools, DPDK deps,
|
||||||
# python for rpc.py, …). Then configure (TCP nvmf transport is in the default
|
# python for rpc.py, …). Then configure (TCP nvmf transport is in the default
|
||||||
# build; trim the test artifacts) and build.
|
# 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 \
|
&& cd /spdk \
|
||||||
&& ./configure --disable-tests --disable-unit-tests \
|
&& ./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
|
# 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
|
# imports resolve from the source tree). spdk-setup.sh locates both via `command
|
||||||
|
|||||||
Reference in New Issue
Block a user