| Serge Bazanski | 77b87a6 | 2023-04-03 15:24:27 +0200 | [diff] [blame] | 1 | sandboxroot mirror |
| 2 | === |
| 3 | |
| 4 | Fedora mirrors tend to drop RPMs very quickly. As we don't want to be constantly |
| 5 | chasing every single tiny update, we have decided to set up our own mirror on GCS. |
| 6 | |
| 7 | The mirror only contains RPMs that the sandboxroot actually uses, and is managed |
| 8 | by running the `mirror` tool from this directory. |
| 9 | |
| 10 | Using the mirror |
| 11 | --- |
| 12 | |
| 13 | The mirror is enabled by default whenever you use Bazel (see repositories.bzl in this directory). |
| 14 | |
| 15 | Updating the mirror |
| 16 | --- |
| 17 | |
| 18 | Any time you run `third_party/sandboxroot/regenerate.sh`, the last step calls `mirror sync`. If that fails for some reason (eg. you were not logged into GCS), you can run it manually: |
| 19 | |
| 20 | ``` |
| 21 | $ bazel run :mirror sync |
| 22 | ``` |
| 23 | |
| 24 | Checking the mirror |
| 25 | --- |
| 26 | |
| 27 | If you want to just check whether everything's properly synced, you can run: |
| 28 | |
| 29 | ``` |
| 30 | $ bazel run :mirror check |
| 31 | ``` |
| 32 | |
| 33 | To do a full scan (downloading and checking SHA256 sums) do: |
| 34 | |
| 35 | ``` |
| 36 | $ bazel run :mirror check --deep |
| 37 | ``` |