From 832011de87f7dcd4a9d74f15b6da28360ff14256 Mon Sep 17 00:00:00 2001 From: Valina Li Date: Tue, 16 May 2023 11:24:49 -0700 Subject: [PATCH] feat: add fuzzing core-data dockerfile and script Closes: issue #4568 Signed-off-by: Valina Li --- .gitignore | 2 +- Dockerfile.fuzz | 3 ++- fuzzing_docker.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5bc55f1303..02372b71c2 100644 --- a/.gitignore +++ b/.gitignore @@ -50,4 +50,4 @@ snap/.snapcraft/* squashfs-root/ # result files -fuzz_result/* \ No newline at end of file +fuzz_results/* \ No newline at end of file diff --git a/Dockerfile.fuzz b/Dockerfile.fuzz index d217a3bb9b..df72cb9f0e 100644 --- a/Dockerfile.fuzz +++ b/Dockerfile.fuzz @@ -2,7 +2,8 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine as builder RUN apk add --no-cache python3 py3-pip bash -RUN git clone https://github.com/microsoft/restler-fuzzer.git +RUN wget https://github.com/microsoft/restler-fuzzer/archive/refs/tags/v9.2.0.tar.gz +RUN tar -xvf v9.2.0.tar.gz && mv restler-fuzzer-9.2.0 restler-fuzzer RUN cd restler-fuzzer; mkdir -p restler_bin WORKDIR /restler-fuzzer diff --git a/fuzzing_docker.sh b/fuzzing_docker.sh index b916792387..88433be9e3 100755 --- a/fuzzing_docker.sh +++ b/fuzzing_docker.sh @@ -19,4 +19,4 @@ echo "--run fuzz-lean" echo "--copy result logs into $EDGEX_PROJECT_NAME" mkdir -p /fuzz_result/$EDGEX_PROJECT_NAME -cp -r ./Test/RestlerResults/ /fuzz_result/$EDGEX_PROJECT_NAME/ +cp -r ./Test/RestlerResults/ /fuzz_results/$EDGEX_PROJECT_NAME/