From b186d21cd9d2e4d04f8c645d22a8e215d0e2ac10 Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Mon, 10 Jan 2022 13:01:22 -0600 Subject: [PATCH] GCP build script updates --- scripts/gcp-create.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/scripts/gcp-create.sh b/scripts/gcp-create.sh index 99af56c..8a0fd2d 100755 --- a/scripts/gcp-create.sh +++ b/scripts/gcp-create.sh @@ -18,9 +18,9 @@ echo "=== gcp-dev.sh $PROJECT $BRANCH" echo "+++ creating/starting VM" gcloud compute instances create --zone=$ZONE $VM \ --scopes=cloud-platform \ - --machine-type=e2-highcpu-4 --preemptible + --machine-type=e2-highcpu-2 --preemptible gcloud compute instances start --zone=$ZONE $VM -IP=$(gcloud compute instances describe essentials --format='value(networkInterfaces.accessConfigs[0].natIP)') +IP=$(gcloud compute instances describe essentials --zone=$ZONE --format='value(networkInterfaces.accessConfigs[0].natIP)') echo "+++ configure local ssh $IP" gcloud compute config-ssh @@ -51,15 +51,5 @@ git config --global user.email "$(git config user.email)" git clone --branch $BRANCH $REPO EOF -echo "+++ configure local ssh" -gcloud compute config-ssh -cat > ~/.ssh/$VM.config <