Skip to content

Commit

Permalink
Add ability to set COMMAND_OVERRIDE from instance metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
letitz committed Feb 5, 2025
1 parent 6a83937 commit 74a8383
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/base/setup_clusterfuzz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ if [ -z "$DEPLOYMENT_BUCKET" ]; then
export DEPLOYMENT_BUCKET=$(curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/project/attributes/deployment-bucket)
fi

if [ -z "$COMMAND_OVERRIDE" ]; then
# Get command override from instance metadata, if any.
export COMMAND_OVERRIDE=$(curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/command-override || true)
fi

CLUSTERFUZZ_FILE=clusterfuzz_package.zip
# When $LOCAL_SRC is set, use source zip on mounted volume for local testing.
if [[ -z "$LOCAL_SRC" ]]; then
Expand Down

0 comments on commit 74a8383

Please sign in to comment.