Configuration for BuildBuddy
1. Obtain Your BuildBuddy API Key
Sign In: Go to buildbuddy.io and sign in with your Google or GitHub account.
Quickstart: Navigate to the "Quickstart" section in your BuildBuddy dashboard.
Copy API Key: You'll see a command similar to this:
bashbuild --bes_backend=grpcs://your-instance.buildbuddy.io build --remote_header=x-buildbuddy-api-key=xxx ...- Copy the entire string after
--remote_header=. This is your API key. It will look likex-buildbuddy-api-key=xxx. - Note the address after
--bes_backend=. You only need the part aftergrpcs://, e.g.,your-instance.buildbuddy.io.
- Copy the entire string after
2. Setup Environment variables for BuildBuddy
- Setup the Variables Add this to your build/envsetup.sh or export them manually:
bash
export RBE_service="your-instance.buildbuddy.io:443" # BuildBuddy instance address (without grpcs://, add the port 443)
export RBE_remote_headers="x-buildbuddy-api-key=xxx" # Your BuildBuddy API key
export RBE_use_rpc_credentials=false
export RBE_service_no_auth=true3. Important Notes
- To get access to a shared cache, please contact @NopeNopeGuy, you'll get much faster first builds and it will reduce the load on BuildBuddy's server.
- If you are not using BuildBuddy but rather your own locally hosted cache, make sure to set
RBE_service_no_securitytotrueto make reclient not use TLS.