[cifuzz] Install gsutil using pip. (#10159)

Install is much smaller than web instructions and
doesn't include anthos bloat.
This cuts pull time in half (about 30 seconds).
This commit is contained in:
jonathanmetzman 2023-04-25 12:20:11 -04:00 committed by GitHub
parent 05b5fb0542
commit 5936f1b235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -20,14 +20,7 @@ RUN apt-get update && \
apt-get install -y systemd && \ apt-get install -y systemd && \
wget https://download.docker.com/linux/ubuntu/dists/focal/pool/stable/amd64/docker-ce-cli_20.10.8~3-0~ubuntu-focal_amd64.deb -O /tmp/docker-ce.deb && \ wget https://download.docker.com/linux/ubuntu/dists/focal/pool/stable/amd64/docker-ce-cli_20.10.8~3-0~ubuntu-focal_amd64.deb -O /tmp/docker-ce.deb && \
dpkg -i /tmp/docker-ce.deb && \ dpkg -i /tmp/docker-ce.deb && \
rm /tmp/docker-ce.deb && \ rm /tmp/docker-ce.deb
mkdir -p /opt/gcloud && \
wget -qO- https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz | tar zxv -C /opt/gcloud && \
/opt/gcloud/google-cloud-sdk/install.sh --usage-reporting=false --bash-completion=false --disable-installation-options && \
apt-get -y install gcc python3-dev && \
pip3 install -U crcmod && \
apt-get autoremove -y gcc python3-dev
ENV PATH=/opt/gcloud/google-cloud-sdk/bin/:$PATH ENV PATH=/opt/gcloud/google-cloud-sdk/bin/:$PATH
ENV OSS_FUZZ_ROOT=/opt/oss-fuzz ENV OSS_FUZZ_ROOT=/opt/oss-fuzz

View File

@ -1,3 +1,4 @@
clusterfuzz==2.5.9 clusterfuzz==2.5.9
requests==2.28.0 requests==2.28.0
protobuf==3.20.2 protobuf==3.20.2
gsutil==5.20