fuzz: Ensure latest base images are used

Latest base image should contain Go 1.18, removing
the need of updating that ourselves, apart from
benefiting from latest changes upstream.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This commit is contained in:
Paulo Gomes 2022-09-02 17:51:11 +01:00
parent 6d479e559b
commit 50ef51b59d
No known key found for this signature in database
GPG Key ID: 9995233870E99BEE
2 changed files with 2 additions and 7 deletions

View File

@ -234,7 +234,7 @@ fuzz-build: $(LIBGIT2)
rm -rf $(BUILD_DIR)/fuzz/
mkdir -p $(BUILD_DIR)/fuzz/out/
docker build . --tag local-fuzzing:latest -f tests/fuzz/Dockerfile.builder
docker build . --pull --tag local-fuzzing:latest -f tests/fuzz/Dockerfile.builder
docker run --rm \
-e FUZZING_LANGUAGE=go -e SANITIZER=address \
-e CIFUZZ_DEBUG='True' -e OSS_FUZZ_PROJECT_NAME=fluxcd \

View File

@ -1,9 +1,4 @@
FROM golang:1.18 AS go
FROM gcr.io/oss-fuzz-base/base-builder-go
# ensures golang 1.18 to enable go native fuzzing.
COPY --from=go /usr/local/go /usr/local/
FROM gcr.io/oss-fuzz-base/base-builder-go-codeintelligencetesting
COPY ./ $GOPATH/src/github.com/fluxcd/source-controller/
COPY ./tests/fuzz/oss_fuzz_build.sh $SRC/build.sh