bazel-remote on Ubuntu 24.04

Azure Developer Tools

A self hosted remote build cache for Bazel, Buck and Goma over HTTP and gRPC.

Base
Hardened build
minimal ports, security patches applied at build time
Access
Unique credentials
generated on first boot, readable only by root
Verified
Boots working
services pass a health gate before release
Support
24/7, 365 days
by email and live chat, 24 hour response SLA

Overview

bazel-remote is a fast, self hosted remote build cache that speaks the HTTP and gRPC Remote Cache protocols used by Bazel, Buck and Goma. It stores Content Addressable Storage blobs and Action Cache entries on disk with a configurable size cap and least recently used eviction, so build and CI machines share compiled artifacts and action results instead of rebuilding them from scratch.

It suits any team that runs Bazel or a compatible build system and wants dramatically faster local and CI builds from a cache they run and own inside their own cloud account, rather than depending on a hosted cache service.

Why the cloudimg image

bazel-remote normally starts with no authentication on every interface. The cloudimg image is secure by default: HTTP Basic Auth is enforced on both the HTTP and gRPC interfaces, and a unique username and password are generated on each virtual machine's first boot and written to a root only file, so every request is authenticated and no credential is shared or baked into the image. A fail secure bootstrap gate stops the cache from starting at all until that per-VM credential exists, so it can never come up open. The appliance refreshes itself to the newest release on first boot, and the paired deployment guide covers reading your credentials, pointing your .bazelrc at the cache and sizing the cache. Every deployment carries 24/7 support.

Common uses

  • Speeding up local and CI builds by sharing a Bazel or Buck cache across machines
  • A self hosted remote build cache you run inside your own cloud account
  • Cutting CI compute cost and time by reusing cached build artifacts and action results