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