-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMODULE.bazel
70 lines (63 loc) · 2.26 KB
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module(
name = "rules_oci",
repo_name = "com_github_datadog_rules_oci",
)
bazel_dep(name = "aspect_bazel_lib", version = "2.7.3")
bazel_dep(name = "bazel_skylib", version = "1.6.1")
bazel_dep(name = "gazelle", version = "0.38.0")
bazel_dep(name = "rules_go", version = "0.47.1")
bazel_dep(name = "rules_pkg", version = "0.10.1")
bazel_dep(name = "stardoc", version = "0.6.2")
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.6.1", dev_dependency = True)
bazel_dep(name = "buildifier_prebuilt", version = "7.3.1", dev_dependency = True)
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.22.5")
go_sdk.host()
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
go_deps,
"com_github_blakesmith_ar",
"com_github_containerd_containerd",
"com_github_containerd_containerd_api",
"com_github_containerd_continuity",
"com_github_containerd_errdefs",
"com_github_containerd_fifo",
"com_github_containerd_log",
"com_github_containerd_platforms",
"com_github_containerd_typeurl_v2",
"com_github_docker_docker_credential_helpers",
"com_github_klauspost_compress",
"com_github_microsoft_go_winio",
"com_github_microsoft_hcsshim",
"com_github_mitchellh_go_homedir",
"com_github_moby_sys_sequential",
"com_github_opencontainers_go_digest",
"com_github_opencontainers_image_spec",
"com_github_opencontainers_runtime_spec",
"com_github_sirupsen_logrus",
"com_github_stretchr_testify",
"com_github_urfave_cli_v2",
"land_oras_oras_go",
"org_golang_google_grpc",
"org_golang_x_sync",
"org_golang_x_sys",
)
go_deps.module_override(
patch_strip = 1,
patches = [
"//third_party/com_github_containerd_containerd:EEESUPPORT-11240-logging-and-retries-for-oci-pull.patch",
],
path = "github.com/containerd/containerd",
)
oci_pull = use_repo_rule("//oci:defs.bzl", "oci_pull")
oci_pull(
name = "ubuntu_focal",
# Latest at "focal" tag
digest = "sha256:9d6a8699fb5c9c39cf08a0871bd6219f0400981c570894cd8cbea30d3424a31f",
registry = "ghcr.io",
repository = "datadog/rules_oci/ubuntu",
)
register_toolchains(
"@com_github_datadog_rules_oci//:oci_local_toolchain",
)