Skip to content

Commit

Permalink
fix: remove gsutil from startup (#261)
Browse files Browse the repository at this point in the history
On a new deployment, it may take 6 mins before gsutil can be authenticated

The existence of the clamav mirror is checked later by the proxy server
  • Loading branch information
nielm authored Nov 25, 2024
1 parent 8818f91 commit 493e919
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions cloudrun-malware-scanner/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ public
CHANGELOG.md
../.release-please-manifest.json
../terraform/*/.terraform
../terraform/*/terraform.tfstate*
4 changes: 0 additions & 4 deletions cloudrun-malware-scanner/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ if [[ -z "${CVD_MIRROR_BUCKET}" || "${CVD_MIRROR_BUCKET}" = "null" ]] ; then
Log ERROR main "ClamCvdMirrorBucket is not defined in ${CONFIG_FILE}"
exit 1
fi
if ! gsutil ls "gs://${CVD_MIRROR_BUCKET}/" > /dev/null ; then
Log ERROR main "ClamCvdMirrorBucket=${CVD_MIRROR_BUCKET} does not exist or is not readable"
exit 1
fi

# Start the reverse proxy which adds authentication
# to requests to GCS REST API, allowing freshclam to access the GCS
Expand Down

0 comments on commit 493e919

Please sign in to comment.