kubernetes: wget and git clone in Dockerfile (#9922)

The git clone and wget calls have been removed from the build script.

Signed-off-by: AdamKorcz <adam@adalogics.com>
This commit is contained in:
AdamKorcz 2023-03-14 17:37:48 +00:00 committed by GitHub
parent ab88810686
commit 0cace22082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,12 @@ RUN git clone --depth 1 https://github.com/google/AFL
RUN git clone --depth 1 https://github.com/dvyukov/go-fuzz-corpus
RUN git clone --depth 1 https://github.com/kubernetes/kops
RUN git clone --depth 1 https://github.com/cncf/cncf-fuzzing
RUN git clone --depth 1 https://github.com/AdamKorcz/instrumentation
RUN wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz \
&& mkdir temp-go \
&& rm -rf /root/.go/* \
&& tar -C temp-go/ -xzf go1.20.2.linux-amd64.tar.gz \
&& mv temp-go/go/* /root/.go/
WORKDIR $SRC/
COPY build.sh $SRC/

View File

@ -20,6 +20,9 @@ set -o pipefail
set -o errexit
set -x
# required by Go 1.20
export CXX="${CXX} -lresolv"
# Compile kOps fuzzers
(
cd kops