зеркало из https://github.com/golang/build.git
37c283811b
This change adds support to generate amd64 Plan 9 image. Consequently the "plan9-386" directory was renamed "plan9". The script handles either the "386" or the "amd64" parameter to build the image. This change also adds the possibility to chose to build the image for QEMU or GCE by passing either the "qemu" or the "gce" parameter. Change-Id: Ic5aced903e0d1e7baa4ae7df2167c4d54cd6a66b Reviewed-on: https://go-review.googlesource.com/c/build/+/4904 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> |
||
---|---|---|
.. | ||
.gitignore | ||
README | ||
make.bash | ||
plan9-gce.iso.sha1 |
README
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").