stage0

command
Version: v0.0.0-...-ab5596a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

README

Go Reference

golang.org/x/build/cmd/buildlet/stage0

The stage0 command looks up the buildlet's URL from its environment (GCE metadata service, EC2, etc), downloads it, and runs it.

Documentation

Overview

The stage0 command looks up the buildlet's URL from its environment (GCE metadata service, EC2, etc), downloads it, and runs it. If not on GCE, such as when in a Linux Docker container being developed and tested locally, the stage0 instead looks for the META_BUILDLET_BINARY_URL environment to have a URL to the buildlet binary.

The stage0 binary is typically baked into the VM or container images or manually copied to dedicated once and is typically never auto-updated. Changes to this binary should be rare, as it's difficult and slow to roll out. Any per-host-type logic to do at start-up should be done in x/build/cmd/buildlet instead, which is re-downloaded once per build, and rolls out easily.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL