1#!/bin/bash 2# Copyright 2017 gRPC authors. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16# Creates a worker for debugging/experiments. 17# The worker will have all the prerequisites that are installed on kokoro 18# windows workers. 19 20set -ex 21 22cd "$(dirname "$0")" 23 24CLOUD_PROJECT=grpc-testing 25ZONE=us-central1-b 26 27if [ "$1" != "" ] 28then 29 INSTANCE_NAME="$1" 30else 31 INSTANCE_NAME="${USER}-win2019-for-containers-test1" 32fi 33 34MACHINE_TYPE=e2-standard-8 35 36# The image version might need updating. 37gcloud compute instances create "$INSTANCE_NAME" \ 38 --project="$CLOUD_PROJECT" \ 39 --zone "$ZONE" \ 40 --machine-type "$MACHINE_TYPE" \ 41 --boot-disk-size=400GB \ 42 --boot-disk-type pd-ssd \ 43 --image-project=windows-cloud \ 44 --image-family=windows-2019-for-containers 45 46# or use --image-family=windows-2019-core-for-containers 47