-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
315 lines (237 loc) · 10 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
workspace(name = "com_intel_devcloud")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
# See https://github.com/bazelbuild/rules_go
http_archive(
name = "io_bazel_rules_go",
sha256 = "f4a9314518ca6acfa16cc4ab43b0b8ce1e4ea64b81c38d8a3772883f153346b8",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.50.1/rules_go-v0.50.1.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.50.1/rules_go-v0.50.1.zip",
],
)
# Download the dependency using http_file
http_file(
name = "trivy_dep",
sha256 = "b8fc3f1f817ef8e17bb6fbd91f7aa87ebd8f996006ce4d5f4c11e9c4c6a1a7bd",
url = "https://github.com/aquasecurity/trivy/releases/download/v0.18.3/trivy_0.18.3_Linux-64bit.tar.gz",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.23.2")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
http_archive(
name = "rules_proto",
sha256 = "6fb6767d1bef535310547e03247f7518b03487740c11b6c6adb7952033fe1295",
strip_prefix = "rules_proto-6.0.2",
url = "https://github.com/bazelbuild/rules_proto/releases/download/6.0.2/rules_proto-6.0.2.tar.gz",
)
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies")
rules_proto_dependencies()
load("@rules_proto//proto:setup.bzl", "rules_proto_setup")
rules_proto_setup()
load("@rules_proto//proto:toolchains.bzl", "rules_proto_toolchains")
rules_proto_toolchains()
git_repository(
name = "com_google_protobuf",
commit = "c9869dc7803eb0a21d7e589c40ff4f9288cd34ae",
remote = "https://github.com/protocolbuffers/protobuf",
shallow_since = "1658780535 -0700",
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
http_archive(
name = "bazel_gazelle",
integrity = "sha256-MpOL2hbmcABjA1R5Bj2dJMYO2o15/Uc5Vj9Q0zHLMgk=",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.35.0/bazel-gazelle-v0.35.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.35.0/bazel-gazelle-v0.35.0.tar.gz",
],
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("//:deps.bzl", "go_dependencies")
# gazelle:repository_macro deps.bzl%go_dependencies
go_dependencies()
gazelle_dependencies()
http_archive(
name = "io_bazel_rules_docker",
sha256 = "b1e80761a8a8243d03ebca8845e9cc1ba6c82ce7c5179ce2b295cd36f7e394bf",
urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.25.0/rules_docker-v0.25.0.tar.gz"],
)
load(
"@io_bazel_rules_docker//repositories:repositories.bzl",
container_repositories = "repositories",
)
container_repositories()
load(
"@io_bazel_rules_docker//go:image.bzl",
_go_image_repos = "repositories",
)
_go_image_repos()
load("//build/toolchains:idc_toolchain.bzl", "register_idc_toolchains")
register_idc_toolchains()
http_archive(
name = "io_bazel_rules_k8s",
sha256 = "ce5b9bc0926681e2e7f2147b49096f143e6cbc783e71bc1d4f36ca76b00e6f4a",
strip_prefix = "rules_k8s-0.7",
urls = ["https://github.com/bazelbuild/rules_k8s/archive/refs/tags/v0.7.tar.gz"],
)
load("@io_bazel_rules_k8s//k8s:k8s.bzl", "k8s_repositories")
k8s_repositories()
# Bazel rules to install and manipulate Helm charts with Bazel
# See https://github.com/masmovil/bazel-rules
git_repository(
name = "com_github_masmovil_bazel_rules",
commit = "5d23e9e2f8eb350d6fb179e811067351f6574233",
remote = "https://github.com/masmovil/bazel-rules.git",
)
load(
"@com_github_masmovil_bazel_rules//repositories:repositories.bzl",
mm_repositories = "repositories",
)
mm_repositories()
http_archive(
name = "helm3_linux_amd64",
build_file = "//build/helm:helm.BUILD.bazel",
sha256 = "f5355c79190951eed23c5432a3b920e071f4c00a64f75e077de0dd4cb7b294ea",
urls = ["https://get.helm.sh/helm-v3.16.3-linux-amd64.tar.gz"],
)
http_archive(
name = "helm3_linux_arm64",
build_file = "//build/helm:helm.BUILD.bazel",
urls = ["https://get.helm.sh/helm-v3.13.3-linux-arm64.tar.gz"],
)
# https://github.com/bazelbuild/rules_pkg/releases/tag/0.9.1
http_archive(
name = "rules_pkg",
sha256 = "8f9ee2dc10c1ae514ee599a8b42ed99fa262b757058f65ad3c384289ff70c4b8",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz",
"https://github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz",
],
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
# Below excludes the directory idcs_core from bazel build //...
# https://github.com/bazelbuild/bazel/issues/4888#issuecomment-407890682
local_repository(
name = "ignore_idcs_core",
path = "idcs_core",
)
local_repository(
name = "ignore_local_go",
path = "local/go",
)
http_file(
name = "postgresql_chart",
sha256 = "b44a3836970aacc9cd2a7c1982e1a8f6c07fb52b456e15520ce8527748f473b5",
url = "https://charts.bitnami.com/bitnami/postgresql-12.1.5.tgz",
)
http_file(
name = "timescaledb_chart",
sha256 = "f081413886ef8cabb1ca6b7ca77c7970c061ae4a42bf753947577fe5021431b1",
url = "https://github.com/timescale/helm-charts/releases/download/timescaledb-single-0.27.5/timescaledb-single-0.27.5.tgz",
)
http_archive(
name = "kubebuilder_tools",
build_file = "//build/kubebuilder:kubebuilder-tools.BUILD.bazel",
sha256 = "c9796a0a13ccb79b77e3d64b8d3bb85a14fc850800724c63b85bf5bacbe0b4ba",
strip_prefix = "kubebuilder",
url = "https://storage.googleapis.com/storage/v1/b/kubebuilder-tools/o/kubebuilder-tools-1.25.0-linux-amd64.tar.gz?alt=media",
)
http_archive(
name = "kubebuilder_tools_arm64",
build_file = "//build/kubebuilder:kubebuilder-tools.BUILD.bazel",
sha256 = "f048b9ba53cb722b5f3b6acc8f8bf4101aa77f0a3062cbd1b0c4cb0d8dd1eaf3",
strip_prefix = "kubebuilder",
url = "https://storage.googleapis.com/storage/v1/b/kubebuilder-tools/o/kubebuilder-tools-1.25.0-linux-arm64.tar.gz?alt=media",
)
http_archive(
name = "kubebuilder_tools_arm64_darwin",
build_file = "//build/kubebuilder:kubebuilder-tools.BUILD.bazel",
sha256 = "e5ae7aaead02af274f840693131f24aa0506b0b44ccecb5f073847b39bef2ce2",
strip_prefix = "kubebuilder",
url = "https://storage.googleapis.com/storage/v1/b/kubebuilder-tools/o/kubebuilder-tools-1.25.0-darwin-arm64.tar.gz?alt=media",
)
load("//build/repositories:repositories.bzl", "idc_repositories")
idc_repositories()
# https://github.com/ash2k/bazel-tools/tree/master/multirun
git_repository(
name = "com_github_ash2k_bazel_tools",
commit = "2add5bb84c2837a82a44b57e83c7414247aed43a",
remote = "https://github.com/ash2k/bazel-tools.git",
shallow_since = "1679573490 +1100",
)
load("@com_github_ash2k_bazel_tools//multirun:deps.bzl", "multirun_dependencies")
multirun_dependencies()
# https://github.com/bazelbuild/rules_python/releases/tag/0.27.0
http_archive(
name = "rules_python",
sha256 = "9acc0944c94adb23fba1c9988b48768b1bacc6583b52a2586895c5b7491e2e31",
strip_prefix = "rules_python-0.27.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.27.0/rules_python-0.27.0.tar.gz",
)
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
# Use a hermetic Python version.
# This is required to produce reproducible tar files on systems running different versions of Python due to https://bugs.python.org/issue18819.
# Available versions are listed in @rules_python//python:versions.bzl.
# https://rules-python.readthedocs.io/en/stable/getting-started.html#using-a-workspace-file
python_register_toolchains(
name = "python_3_10_2",
python_version = "3.10.2",
)
# https://github.com/bazel-contrib/rules_bazel_integration_test
http_archive(
name = "rules_bazel_integration_test",
sha256 = "b079b84278435441023f03de1a72baff9e4e4fe2cb1092ed4c9b60dc8b42e732",
urls = [
"https://github.com/bazel-contrib/rules_bazel_integration_test/releases/download/v0.25.0/rules_bazel_integration_test.v0.25.0.tar.gz",
],
)
load("@rules_bazel_integration_test//bazel_integration_test:deps.bzl", "bazel_integration_test_rules_dependencies")
bazel_integration_test_rules_dependencies()
load("@cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")
bazel_starlib_dependencies()
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "bazel_binaries")
bazel_binaries(versions = [
"//:.bazelversion",
"5.4.0",
])
# IDC Universe Deployer
load("//build/git_archive:git_archive.bzl", "git_archive")
load("//build/bzl_file_embed:bzl_file_embed.bzl", "bzl_file_embed")
load("//universe_deployer/main_universe:main_universe_defs.bzl", "main_universe_srcs")
git_archive(
name = "git_archives",
srcs = main_universe_srcs,
commit_metadata_source_files = {
"universe_deployer_commit_metadata": "deployment/universe_deployer/commit_metadata.json",
},
remote = "https://github.com/intel-innersource/frameworks.cloud.devcloud.services.idc",
)
bzl_file_embed(
name = "main_universe_config_file_embed",
srcs = main_universe_srcs,
)
load("//universe_deployer/create_releases:create_releases_defs.bzl", "create_releases_srcs")
git_archive(
name = "create_releases_git_archives",
srcs = create_releases_srcs,
commit_metadata_source_files = {
"universe_deployer_commit_metadata": "deployment/universe_deployer/commit_metadata.json",
},
remote = "https://github.com/intel-innersource/frameworks.cloud.devcloud.services.idc",
)
bzl_file_embed(
name = "create_releases_universe_config_file_embed",
srcs = create_releases_srcs,
)
local_repository(
name = "rules_sphinx",
path = "build/rules_sphinx",
)
load("@rules_sphinx//sphinx:direct_repositories.bzl", "rules_sphinx_direct_deps")
rules_sphinx_direct_deps()
load("@rules_sphinx//sphinx:indirect_repositories.bzl", "rules_sphinx_indirect_deps")
rules_sphinx_indirect_deps()