Skip to content

builders: move OpenBSD builder to GCE #8642

Closed
@bradfitz

Description

@bradfitz
This bug is about moving the OpenBSD builders to GCE per the document
http://golang.org/s/builderplan

The OpenBSD buildbot will be similar to Windows (issue #8640) and FreeBBSD (issue #8639)

In summary, we want a script (that we can run on Linux, in Docker) that can generate a
GCE-bootable OpenBSD image.

That OpenBSD image must then, upon boot, fetch its GCE instance-level metadata value for
"buildmaster-binary-url" and exec it.

Basically, on boot (/etc/rc.local? is that a thing?), I want it to run:

curl -o /buildmaster $(curl -H "Metadata-Flavor: Google"
http://metadata.google.internal/computeMetadata/v1/instance/attributes/buildmaster-binary-url)
chmod +x /buildmaster
exec /buildmaster
halt (if the exec failed)

And then we will occasionally update the buildmaster-binary-url property to a new
cross-compiled-to-OpenBSD (/Windows/FreeBSD) Go binary that implements the builder RPC
server, as described in issue #8640.

The OpenBSD kernel should be able to run both 32-bit or 64-bit binaries. Alternatively,
if easier or desired, prepare me two images.

Can some OpenBSD person own making the tool to prepare this image?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions