1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:14:43 -07:00
go/dashboard/env/openbsd-amd64
Brad Fitzpatrick b2523aab47 dashboard/env: add script to create OpenBSD GCE image
This is almost entirely the work of @mdempsky; I just ran
it a bunch and reported bugs or tweaked things until it worked
and booted the buildlet on GCE.

Update #8642

Change-Id: If5d50bcdf90bc6aa648472cc951ed1c53b46eef3
Reviewed-on: https://go-review.googlesource.com/2156
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2014-12-29 23:20:32 +00:00
..
.gitignore dashboard/env: add script to create OpenBSD GCE image 2014-12-29 23:20:32 +00:00
make.bash dashboard/env: add script to create OpenBSD GCE image 2014-12-29 23:20:32 +00:00
README dashboard/env: add script to create OpenBSD GCE image 2014-12-29 23:20:32 +00:00

make.bash creates a Google Compute Engine VM image to run the Go
OpenBSD 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 openbsd-amd64-gce.tar.gz

Upload openbsd-amd64-gce.tar.gz to gs://go-builder-data/openbsd-amd64-gce.tar.gz
I just use the web UI at:
    https://console.developers.google.com/project/symbolic-datum-552/storage/browser/go-builder-data/

Then:
   gcloud compute --project symbolic-datum-552 images create openbsd-amd64-56 --source-uri gs://go-builder-data/openbsd-amd64-gce.tar.gz

The VM needs to be run with the GCE metadata attribute "buildlet-binary-url" set to a URL
of the OpenBSD builetlet (cross-compiled, typically).

    buildlet-binary-url == http://storage.googleapis.com/go-builder-data/buildlet.openbsd-amd64