Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(644)

Unified Diff: compute_engine_scripts/skfe/vm_create_instance.sh

Issue 819473004: Set up the nginx servers for handling *.skia.org traffic. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: readme Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compute_engine_scripts/skfe/vm_config.sh ('k') | compute_engine_scripts/skfe/vm_delete_instance.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compute_engine_scripts/skfe/vm_create_instance.sh
diff --git a/compute_engine_scripts/skfe/vm_create_instance.sh b/compute_engine_scripts/skfe/vm_create_instance.sh
new file mode 100755
index 0000000000000000000000000000000000000000..b3696a166461cf8b55213a304fd01b8a6609a198
--- /dev/null
+++ b/compute_engine_scripts/skfe/vm_create_instance.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+#
+# Creates the compute instance for the skia frontends.
+#
+set -x
+
+source vm_config.sh
+
+
+for NUM in $(seq 1 $NUM_INSTANCES); do
+
+ gcloud compute --project $PROJECT_ID disks create $INSTANCE_NAME-$NUM \
+ --zone $ZONE \
+ --source-snapshot skia-pushable-base \
+ --type "pd-standard"
+
+ gcloud compute --project $PROJECT_ID instances create $INSTANCE_NAME-$NUM\
+ --zone $ZONE \
+ --machine-type n1-standard-4 \
rmistry 2015/01/05 19:25:34 Store machine type in vm_config.sh to be consisten
jcgregorio 2015/01/05 20:13:17 Done.
+ --network "default" \
+ --maintenance-policy "MIGRATE" \
+ --scopes $SCOPES \
+ --tags "http-server" "https-server" \
+ --disk "name="$INSTANCE_NAME-$NUM "device-name="$INSTANCE_NAME-$NUM "mode=rw" "boot=yes" "auto-delete=yes" \
+ --metadata-from-file "startup-script=startup-script.sh"
+
+done
« no previous file with comments | « compute_engine_scripts/skfe/vm_config.sh ('k') | compute_engine_scripts/skfe/vm_delete_instance.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698