From 411a32ccce3ea1deca7dd74deb728b4a8fe9a776 Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Mon, 13 Dec 2021 15:18:03 +0000 Subject: [PATCH] Cleanup GCP scripts --- scripts/gcp-create.sh | 2 +- scripts/{gcp-vm-clean.sh => vm-clean.sh} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename scripts/{gcp-vm-clean.sh => vm-clean.sh} (84%) diff --git a/scripts/gcp-create.sh b/scripts/gcp-create.sh index 5c9cfab..99af56c 100755 --- a/scripts/gcp-create.sh +++ b/scripts/gcp-create.sh @@ -19,7 +19,7 @@ echo "+++ creating/starting VM" gcloud compute instances create --zone=$ZONE $VM \ --scopes=cloud-platform \ --machine-type=e2-highcpu-4 --preemptible -gcloud compute instances start $VM +gcloud compute instances start --zone=$ZONE $VM IP=$(gcloud compute instances describe essentials --format='value(networkInterfaces.accessConfigs[0].natIP)') echo "+++ configure local ssh $IP" diff --git a/scripts/gcp-vm-clean.sh b/scripts/vm-clean.sh similarity index 84% rename from scripts/gcp-vm-clean.sh rename to scripts/vm-clean.sh index e4ec2bb..3569e55 100755 --- a/scripts/gcp-vm-clean.sh +++ b/scripts/vm-clean.sh @@ -5,6 +5,6 @@ echo "=== gcp-clean-vm.sh" ## Cleanup for 06_running_analysis -sudo apt remove git +sudo apt remove git --yes rm -rf ~/CLASS-Examples