2023-01-30 11:15:59 -05:00
|
|
|
"""Bazel rules for building OCI images"""
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
|
|
|
def oci_deps():
|
2023-12-19 09:40:04 -05:00
|
|
|
# TODO(malt3): This uses a patch on top of the normal rules_oci that removes broken Windows support.
|
|
|
|
# Remove this override once https://github.com/bazel-contrib/rules_oci/issues/420 is fixed.
|
2023-01-30 11:15:59 -05:00
|
|
|
http_archive(
|
2023-03-15 08:10:05 -04:00
|
|
|
name = "rules_oci",
|
2024-08-07 03:32:38 -04:00
|
|
|
strip_prefix = "rules_oci-2.0.0-beta1",
|
2023-04-03 12:13:34 -04:00
|
|
|
type = "tar.gz",
|
2023-03-30 03:41:56 -04:00
|
|
|
urls = [
|
2024-08-07 03:32:38 -04:00
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/f70f07f9d0d6c275d7ec7d3c7f236d9b552ba3205e8f37df9c1125031cf967cc",
|
|
|
|
"https://github.com/bazel-contrib/rules_oci/releases/download/v2.0.0-beta1/rules_oci-v2.0.0-beta1.tar.gz",
|
2023-03-30 03:41:56 -04:00
|
|
|
],
|
2024-08-07 03:32:38 -04:00
|
|
|
sha256 = "f70f07f9d0d6c275d7ec7d3c7f236d9b552ba3205e8f37df9c1125031cf967cc",
|
|
|
|
patches = ["//bazel/toolchains:0001-disable-Windows-support.patch"],
|
|
|
|
patch_args = ["-p1"],
|
2023-01-30 11:15:59 -05:00
|
|
|
)
|