Compiles json-c in ndpi project (#4773)

This commit is contained in:
Catena cyber 2020-12-03 17:23:18 +01:00 committed by GitHub
parent 8f8148438a
commit eb0c225372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -15,7 +15,8 @@
################################################################################
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake autogen pkg-config libtool flex bison libjson-c-dev
RUN apt-get update && apt-get install -y make autoconf automake autogen pkg-config libtool flex bison cmake
RUN git clone --depth 1 https://github.com/json-c/json-c.git json-c
RUN git clone --depth 1 https://github.com/ntop/nDPI.git ndpi
ADD https://www.tcpdump.org/release/libpcap-1.9.1.tar.gz libpcap-1.9.1.tar.gz
COPY build.sh $SRC/

View File

@ -23,6 +23,13 @@ make -j$(nproc)
make install
cd ..
cd json-c
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=OFF ..
make install
cd ../..
# build project
cd ndpi
sh autogen.sh