forked from cert-manager/cert-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
118 lines (93 loc) · 3.4 KB
/
WORKSPACE
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
workspace(
# How this workspace would be referenced with absolute labels from another workspace
name = "cert_manager",
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
## Load rules_go and dependencies
http_archive(
name = "io_bazel_rules_go",
urls = [
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.1/rules_go-0.19.1.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/0.19.1/rules_go-0.19.1.tar.gz",
],
sha256 = "8df59f11fb697743cbb3f26cfb8750395f30471e9eabde0d174c3aebc7a1cd39",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains(
go_version = "1.12.7",
)
## Load gazelle and dependencies
http_archive(
name = "bazel_gazelle",
url = "https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz",
sha256 = "be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b",
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
## Load kubernetes repo-infra for tools like kazel
git_repository(
name = "io_kubernetes_build",
commit = "1b2ddaf3fb8775a5d0f4e28085cf846f915977a8",
remote = "https://github.com/kubernetes/repo-infra.git",
shallow_since = "1562041369 -0700",
)
## Load rules_docker and depdencies, for working with docker images
git_repository(
name = "io_bazel_rules_docker",
remote = "https://github.com/bazelbuild/rules_docker.git",
commit = "80ea3aae060077e5fe0cdef1a5c570d4b7622100",
shallow_since = "1561646721 -0700",
)
load(
"@io_bazel_rules_docker//repositories:repositories.bzl",
container_repositories = "repositories",
)
container_repositories()
load(
"@io_bazel_rules_docker//container:container.bzl",
"container_pull",
)
load(
"@io_bazel_rules_docker//go:image.bzl",
_go_image_repos = "repositories",
)
_go_image_repos()
## Use 'static' distroless image for all builds
container_pull(
name = "static_base",
registry = "gcr.io",
repository = "distroless/static",
digest = "sha256:cd0679a54d2abaf3644829f5e290ad8a10688847475f570fddb9963318cf9390",
)
# Load and define targets defined in //hack/bin
load(
"//hack/bin:deps.bzl",
install_hack_bin = "install",
)
install_hack_bin()
# Load and define targets defined in //hack/bin
load(
"//test/e2e:images.bzl",
install_e2e_images = "install",
)
install_e2e_images()
# Load and define targets used for reference doc generation
load(
"//docs/generated/reference:deps.bzl",
install_docs_dependencies = "install",
)
install_docs_dependencies()
# The npm_install rule runs yarn anytime the package.json or package-lock.json file changes.
# It also extracts any Bazel rules distributed in an npm package.
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_install")
npm_install(
# Name this npm so that Bazel Label references look like @brodocs_modules//package
name = "brodocs_modules",
package_json = "@brodocs//:package.json",
package_lock_json = "//docs/generated/reference/generate/bin:package-lock.json",
)
# Install any Bazel rules which were extracted earlier by the npm_install rule.
load("@brodocs_modules//:install_bazel_dependencies.bzl", "install_bazel_dependencies")
install_bazel_dependencies()