env/openbsd-amd64: install git, improve README
Updates golang/go#8642 Change-Id: Ia11faeafb96a325ff62dcf95fedb5a6489e41bd4 Reviewed-on: https://go-review.googlesource.com/2263 Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
0a8eb31860
commit
938dd670d2
|
@ -5,11 +5,13 @@ make.bash should be run on a Linux box with qemu.
|
||||||
|
|
||||||
After it completes, it creates a file openbsd-amd64-gce.tar.gz
|
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
|
Then:
|
||||||
I just use the web UI at:
|
gsutil cp -a public-read openbsd-amd64-gce.tar.gz gs://go-builder-data/openbsd-amd64-gce.tar.gz
|
||||||
|
Or just use the web UI at:
|
||||||
https://console.developers.google.com/project/symbolic-datum-552/storage/browser/go-builder-data/
|
https://console.developers.google.com/project/symbolic-datum-552/storage/browser/go-builder-data/
|
||||||
|
|
||||||
Then:
|
Then:
|
||||||
|
gcloud compute --project symbolic-datum-552 images delete openbsd-amd64-56
|
||||||
gcloud compute --project symbolic-datum-552 images create openbsd-amd64-56 --source-uri gs://go-builder-data/openbsd-amd64-gce.tar.gz
|
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
|
The VM needs to be run with the GCE metadata attribute "buildlet-binary-url" set to a URL
|
||||||
|
|
|
@ -17,7 +17,7 @@ fi
|
||||||
mkdir -p etc
|
mkdir -p etc
|
||||||
cat >install.site <<EOF
|
cat >install.site <<EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
env PKG_PATH=ftp://ftp.usa.openbsd.org/pub/OpenBSD/5.6/packages/amd64 pkg_add -iv bash curl
|
env PKG_PATH=ftp://ftp.usa.openbsd.org/pub/OpenBSD/5.6/packages/amd64 pkg_add -iv bash curl git
|
||||||
|
|
||||||
# See https://code.google.com/p/google-compute-engine/issues/detail?id=77
|
# See https://code.google.com/p/google-compute-engine/issues/detail?id=77
|
||||||
echo "ignore classless-static-routes;" >> /etc/dhclient.conf
|
echo "ignore classless-static-routes;" >> /etc/dhclient.conf
|
||||||
|
@ -202,7 +202,10 @@ send "yes\n"
|
||||||
expect -timeout 600 "Location of sets\?"
|
expect -timeout 600 "Location of sets\?"
|
||||||
send "done\n"
|
send "done\n"
|
||||||
|
|
||||||
# Need to wait for install.site to install curl.
|
expect "Ambiguous: choose dependency for git"
|
||||||
|
send "0\n"
|
||||||
|
|
||||||
|
# Need to wait for install.site to install curl, git, et
|
||||||
expect -timeout 600 "CONGRATULATIONS!"
|
expect -timeout 600 "CONGRATULATIONS!"
|
||||||
|
|
||||||
expect "# "
|
expect "# "
|
||||||
|
|
Loading…
Reference in New Issue