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

Side by Side 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: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 #!/bin/bash
2 #
3 # Creates the compute instance for the skia frontends.
4 #
5 set -x
6
7 source vm_config.sh
8
9
10 for NUM in $(seq 1 $NUM_INSTANCES); do
11
12 gcloud compute --project $PROJECT_ID disks create $INSTANCE_NAME-$NUM \
13 --zone $ZONE \
14 --source-snapshot skia-pushable-base \
15 --type "pd-standard"
16
17 gcloud compute --project $PROJECT_ID instances create $INSTANCE_NAME-$NUM\
18 --zone $ZONE \
19 --machine-type $MACHINE_TYPE \
20 --network "default" \
21 --maintenance-policy "MIGRATE" \
22 --scopes $SCOPES \
23 --tags "http-server" "https-server" \
24 --disk "name="$INSTANCE_NAME-$NUM "device-name="$INSTANCE_NAME-$NUM "mode=rw " "boot=yes" "auto-delete=yes" \
25 --metadata-from-file "startup-script=startup-script.sh"
26
27 done
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698