spdk: simplify build (#6503)

This commit is contained in:
DavidKorczynski 2021-09-21 21:25:57 +01:00 committed by GitHub
parent 2b3ce49d77
commit 547f1b61cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 9 deletions

View File

@ -15,14 +15,9 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make curl yasm autoconf libtool meson
RUN git clone --depth 1 https://github.com/spdk/spdk
RUN mkdir nasm-2.15 && cd nasm-2.15 && \
curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.xz && \
tar -xf nasm-2.15.05.tar.xz --strip-components=1 && \
./configure --prefix=/usr && \
make -j$(nproc) && \
make -j$(nproc) install
RUN apt-get update && apt-get install -y make curl yasm autoconf libtool meson nasm
RUN git clone --depth 1 https://github.com/spdk/spdk && \
cd spdk && \
git submodule update --init
WORKDIR $SRC/spdk
RUN git submodule update --init
COPY build.sh parse_json_fuzzer.cc $SRC/