You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a new "airgapped" attribute to the pull rule.
If set, it can be used to ensure that any requests are provided by predownloaded files from "blob_files".
| <aid="pull-name"></a>name | A unique name for this repository. | <ahref="https://bazel.build/concepts/labels#target-names">Name</a> | required ||
45
+
| <aid="pull-airgapped"></a>airgapped | Enable airgapped mode.<br><br>When enabled, the pull tool will only use locally cached blobs and will not attempt any network requests. This is useful for completely offline/air-gapped environments where all required blobs must be provided via blob_files.<br><br>If a required blob is not available locally, the pull will fail rather than attempting to download it. | Boolean | optional |`False`|
45
46
| <aid="pull-blob_files"></a>blob_files | Pre-downloaded blob files to use.<br><br>A dictionary mapping blob digests (e.g., "sha256:abc123...") to file labels. These blobs will be verified and used instead of downloading from the registry when available. This is useful for air-gapped environments or to avoid redundant downloads of common base layers. | Dictionary: String -> Label | optional |`{}`|
46
47
| <aid="pull-digest"></a>digest | The image digest for reproducible pulls (e.g., "sha256:abc123...").<br><br>When specified, the image is pulled by digest instead of tag, ensuring reproducible builds. The digest must be a full SHA256 digest starting with "sha256:". | String | optional |`""`|
47
48
| <aid="pull-downloader"></a>downloader | The tool to use for downloading manifests and blobs.<br><br>**Available options:**<br><br>***`img_tool`** (default): Uses the `img` tool for all downloads.<br><br>***`bazel`**: Uses Bazel's native HTTP capabilities for downloading manifests and blobs. | String | optional |`"img_tool"`|
0 commit comments