bootstrapswarm command
bootstapswarm will bootstrap the swarming bot depending on the environment that it is run on.
On GCE: bootstrapswarm will retrieve authentication credentials from the GCE metadata service and use those credentials to download the swarming bot. It will then start the swarming bot in a directory within the user's home directory.
Requirements:
- Python 3 installed and available in PATH (or equivalent) under the name python3 (or python3.exe on Windows).
Not on GCE: bootstrapswarm will read the token file and retrieve the the luci machine token. It will use that token to authenticate and download the swarming bot. It will then start the swarming bot in a directory within the user's home directory.
Requirements:
- Python 3 installed and available in PATH (or equivalent) under the name python3 (or python3.exe on Windows).
- luci_machine_tokend running as root in a cron job. See https://chromium.googlesource.com/infra/luci/luci-go/+/main/tokenserver. Further instructions can be found at https://go.dev/wiki/DashboardBuilders. The default locations for the token files should be used if possible: Most OS: /var/lib/luci_machine_tokend/token.json Windows: C:\luci_machine_tokend\token.json A custom default location can be set via the environment variable LUCI_MACHINE_TOKEN.
- bootstrapswarm should not be run as a privileged user.
- Version
- v0.0.0-20250421191922-3619c213cff3 (latest)
- Published
- Apr 21, 2025
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 2 months ago –
Tools for package owners.