| make.bash creates a Google Compute Engine VM image to run the Go |
| Plan 9 builder, booting up to run the buildlet. |
| |
| make.bash should be run on a Linux box with qemu. |
| |
| After it completes, it creates a file plan9-386-gce.tar.gz |
| |
| The make.bash script depends on the following packages: |
| |
| $ sudo apt-get install bzip2 curl expect qemu |
| or |
| $ sudo yum install bzip2 curl expect qemu |
| |
| It has been tested with QEMU 1.4.2 to 2.2.0, as provided with: |
| |
| - Ubuntu 14.04 (Trusty Tahr) and above |
| - Debian 8.0 (Jessie) and above |
| - Fedora 19 and above |
| |
| Also, due to an ATA bug affecting QEMU 1.6 and 1.7, the |
| Plan 9 CD can't be booted with these versions. |
| |
| To create the image: |
| $ ./make.bash |
| |
| Then: |
| $ gsutil cp -a public-read plan9-386-gce.tar.gz gs://go-builder-data/plan9-386-gce.tar.gz |
| |
| Then: |
| $ gcloud compute --project symbolic-datum-552 images create plan9-386-v6 --source-uri gs://go-builder-data/plan9-386-gce.tar.gz |
| |
| To test the image before deploying it to prod, use x/build/cmd/debugnewvm. |
| |
| Then update x/build/dashboard/builders.go with the new image version |
| (e.g. "plan9-386-v5" to "plan9-386-v6"). |