build/env/dragonfly-amd64
Antonio Huete Jimenez d6ee231f33 dashboard: fix env/dragonfly-amd64 build
Due to several factors as an old pkg version in the ISO, or the amount
of changes that have gone to the binary packages since 6.4.0 was
released, a bit of a workaround is needed in phase2.sh

For golang/go#64684.

Change-Id: I233fcfb77c3cc2f0b04331ad7bfee5892193622a
GitHub-Last-Rev: 76b78fd935
GitHub-Pull-Request: golang/build#88
Reviewed-on: https://go-review.googlesource.com/c/build/+/568315
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2024-06-16 23:16:58 +00:00
..
.gitignore env/dragonfly-amd64: add scripts for building GCE VM image 2022-08-02 15:54:23 +00:00
Makefile dashboard: update dragonfly to 6.4.0 2023-12-14 18:16:21 +00:00
README env/dragonfly-amd64: add scripts for building GCE VM image 2022-08-02 15:54:23 +00:00
buildlet env/dragonfly-amd64: add scripts for building GCE VM image 2022-08-02 15:54:23 +00:00
phase1.sh all: add missing license headers 2023-04-24 13:52:27 +00:00
phase2.sh dashboard: fix env/dragonfly-amd64 build 2024-06-16 23:16:58 +00:00
phase3.sh all: add missing license headers 2023-04-24 13:52:27 +00:00

README

The Makefile in this directory creates a Google Compute Engine VM image to run the Go
DragonflyBSD builder, booting up to run the buildlet.

make must be run on a Linux box with qemu and a few additional packages:

	apt-get install qemu-system-x86 qemu-utils expect genisoimage

To override the default Dragonfly version, set V= on the make command line:

	make V=600

To add new Dragonfly versions, add lines to the "Database" in the Makefile
and perhaps change the V= line to update the default.

	make upload-prod

builds and uploads the image. To replace an existing image, use

	make delete-prod upload-prod

s/prod/staging/ to test in the staging cluster instead.

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

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

The buildlet rc script is lightly modified from ../freebsd-amd64.