blob: 55ce82ce8cd883128db6ffc4cf34e63350a0934c [file] [log] [blame] [view]
Tim Windelschmidt5178dd72024-12-04 04:38:45 +01001Bazel downloader mirror
2===
3
4This is a small tool which acts as a transparent proxy-ish mirror for use in the bazel downloader.
5By using a bazel_downloader.cfg we can instruct bazel to rewrite the download URLs and use a custom target instead. We use this to mirror all dependencies to our S3 storage.
6
7Usage
8---
9
10This is expected to run with a given bucket name and a hardcoded set of credentials which are used to authenticate requests. When an authenticated request is received, the mirror will download uncached data if it isn't in the cache yet. This is expected to be used by trusted users, e.g. employees.
11
12Users should deploy a .netrc inside their home folder based on the following template to allow bazel to authenticate against the mirror.
13
14`~/.netrc`
15```
16machine mirror.monogon.dev
17login myfancyusername
18password mysecretpassword
19```