# Bazel-remote-cache

Bazel-remote-cache is a self-hosted databases app. An HTTP/1.1 and gRPC server that serves as a remote build cache for Bazel and other build tools, storing build artifacts on disk or in S3, GCS, or Azure blob storage to speed up repeated and CI builds. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5626/bazel-remote-cache

## Description

An HTTP/1.1 and gRPC server that serves as a remote build cache for Bazel and other build tools, storing build artifacts on disk or in S3, GCS, or Azure blob storage to speed up repeated and CI builds.

## Platform availability

Available on 0 of 10 platforms.

## Health score

71/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 9 days ago)
- Popular: 58 (792 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Security check: 74 (no serious findings, CI, tests, OpenSSF Scorecard 3.4/10)

## Links

- GitHub: https://github.com/buchgr/bazel-remote
- Docker Hub: https://hub.docker.com/r/buchgr/bazel-remote-cache
- Official website: https://bazel.build

## Common questions

### How does bazel-remote enforce its maximum cache size?

It stores cache contents in a directory on disk with a maximum cache size and automatically deletes the least recently used files as needed.

### Does bazel-remote support proxying to cloud object storage?

S3, GCS, and experimental Azure blob storage proxy backends are supported.

### What CI connection issues should be checked when Bazel remote-cache calls fail?

Trace the failure through endpoint protocol, certificate trust, client authentication, credentials, and CI proxy configuration.

### Why can a build fetch the wrong cached artifact after changing build configuration?

Using --define or --action_env to change build configuration can cause Bazel to fetch the wrong cached build output, so this behavior needs debugging.

## Alternatives

- CMake
- Gradle: Gradle is a build tool with a focus on build automation and support for multi-language development.

---
Source: Our Local Host (https://ourlocalhost.com/app/5626/bazel-remote-cache), the self-hosted and open-source app directory.
