aboutsummaryrefslogtreecommitdiff
path: root/gcloud-test-image-official.aww
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-06-30 01:44:12 +0700
committerShulhan <ms@kilabit.info>2022-08-05 00:02:10 +0700
commitcb31f4f3fd1a24b8268cca34f9bfefaf3b747a5d (patch)
treed4a2081f011c037bcc58a87aae9fd8a8c873034b /gcloud-test-image-official.aww
parent015e2edf17ef7bdb7fd05a9f848c4747a62e7a6f (diff)
downloadcompute-archlinux-image-builder-cb31f4f3fd1a24b8268cca34f9bfefaf3b747a5d.tar.xz
all: add awwan scripts to deploy and test image
The gcloud-image-publish.aww is the script to publish the recently build image to gcloud and create new image. The gcloud-image-test.aww is the script to test the new image by creating new compute engine. The gcloud-test-image-official.aww is the script to test the official public image from Google. The gcloud-test-tail.aww is the script to get the serial log from test image in compute engine.
Diffstat (limited to 'gcloud-test-image-official.aww')
-rw-r--r--gcloud-test-image-official.aww17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcloud-test-image-official.aww b/gcloud-test-image-official.aww
new file mode 100644
index 0000000..3e464af
--- /dev/null
+++ b/gcloud-test-image-official.aww
@@ -0,0 +1,17 @@
+## Script to test the official public image.
+
+#require: gcloud config configurations activate {{.Val "gcloud::config"}}
+
+gcloud compute instances create arch-test \
+ --zone={{.Val "gcloud::zone"}} \
+ --image-project=arch-linux-gce \
+ --image-family=arch \
+ --machine-type=f1-micro
+
+gcloud compute instances describe arch-test \
+ --zone={{.Val "gcloud::zone"}}
+
+gcloud compute ssh \
+ --zone={{.Val "gcloud::zone"}} \
+ --command="lsblk -o NAME,UUID,MOUNTPOINTS; cat /etc/fstab; timedatectl show-timesync; localectl" \
+ arch-test