github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/syz-cluster/run-local.sh (about) 1 #!/usr/bin/env bash 2 # Copyright 2024 syzkaller project authors. All rights reserved. 3 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 4 5 if [ -z "$1" ]; then 6 echo "Error: No command/service name provided." 7 exit 1 8 fi 9 10 name="$1" 11 shift 12 13 alias kubectl="minikube kubectl --" 14 # Clean up in case the run comand was prematurely aborted. 15 # TODO: find out how to rely on envs from overlays/dev/global-config.yaml. 16 kubectl delete pod run-local >/dev/null 2>&1 || true 17 kubectl run run-local --image="local/$name" \ 18 --image-pull-policy=Never \ 19 --restart=Never \ 20 --env="SPANNER_EMULATOR_HOST=cloud-spanner-emulator:9010" \ 21 --env="SPANNER_DATABASE_URI=projects/my-project/instances/my-instance/databases/db" \ 22 --env="LOCAL_BLOB_STORAGE_PATH=/tmp/blobs/" \ 23 --rm \ 24 --labels="app=db-mgmt" \ 25 --attach -- "$@"