blob: 439ac1f394ecbe27b6e7cb4de021e8281e60e840 [file] [log] [blame]
Sergiusz Bazanskide061802019-01-13 21:14:02 +01001load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
Sergiusz Bazanski3e597182019-04-19 14:40:47 +02002load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Sergiusz Bazanskide061802019-01-13 21:14:02 +01003
Serge Bazanski2ce36762019-07-14 16:29:52 +02004# Skylib
5
6skylib_version = "0.8.0"
Sergiusz Bazanski8fe651b2019-07-21 23:50:05 +02007
Serge Bazanski2ce36762019-07-14 16:29:52 +02008http_archive(
9 name = "bazel_skylib",
10 type = "tar.gz",
Sergiusz Bazanski8fe651b2019-07-21 23:50:05 +020011 url = "https://github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel-skylib.{}.tar.gz".format(skylib_version, skylib_version),
Serge Bazanski2ce36762019-07-14 16:29:52 +020012 sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e",
13)
14
15# Docker rules
16
17http_archive(
18 name = "io_bazel_rules_docker",
19 sha256 = "87fc6a2b128147a0a3039a2fd0b53cc1f2ed5adb8716f50756544a572999ae9a",
20 strip_prefix = "rules_docker-0.8.1",
21 urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.8.1.tar.gz"],
22)
23
Sergiusz Bazanski356ea8b2019-07-21 23:56:43 +020024load("@io_bazel_rules_docker//toolchains/docker:toolchain.bzl", docker_toolchain_configure = "toolchain_configure")
25
26# This forces the use of Docker $HOME/.docker configuration.
27docker_toolchain_configure(
28 name = "docker_config",
29 client_config = "",
30)
31
Serge Bazanski2ce36762019-07-14 16:29:52 +020032load(
33 "@io_bazel_rules_docker//repositories:repositories.bzl",
34 container_repositories = "repositories",
35)
36
37container_repositories()
Sergiusz Bazanski8fe651b2019-07-21 23:50:05 +020038
Sergiusz Bazanski1e6b52a2019-05-15 19:08:25 +020039# Nix rules
40http_archive(
41 name = "io_tweag_rules_nixpkgs",
42 strip_prefix = "rules_nixpkgs-364adc70f32c2b3982995fce06b334f4d159070e",
43 urls = ["https://github.com/tweag/rules_nixpkgs/archive/364adc70f32c2b3982995fce06b334f4d159070e.tar.gz"],
44)
45
46# Nix packages
47
48load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_git_repository", "nixpkgs_package")
Sergiusz Bazanskic2924102019-06-30 17:35:57 +020049
Sergiusz Bazanski1e6b52a2019-05-15 19:08:25 +020050nixpkgs_git_repository(
51 name = "nixpkgs",
52 revision = "2f1f9a9fe8a3c22f0677733523eaf6bd33995d50",
53)
54
55nixpkgs_package(
56 name = "nixops",
Sergiusz Bazanski44116ea2019-05-18 16:26:56 +020057 attribute_path = "nixops",
Sergiusz Bazanskic2924102019-06-30 17:35:57 +020058 repositories = {"nixpkgs": "@nixpkgs"},
Sergiusz Bazanski1e6b52a2019-05-15 19:08:25 +020059)
60
Sergiusz Bazanski3e597182019-04-19 14:40:47 +020061# Python rules
Serge Bazanski2ce36762019-07-14 16:29:52 +020062
Sergiusz Bazanskide061802019-01-13 21:14:02 +010063git_repository(
Serge Bazanski2ce36762019-07-14 16:29:52 +020064 name = "com_apt_itude_rules_pip",
Sergiusz Bazanskid5ac5d12019-07-19 20:53:21 +020065 commit = "ce667087818553cdc4b1a2258fc53df917c4f87c",
Serge Bazanski2ce36762019-07-14 16:29:52 +020066 remote = "https://github.com/apt-itude/rules_pip.git",
Sergiusz Bazanskide061802019-01-13 21:14:02 +010067)
68
69# Python dependencies
Serge Bazanski2ce36762019-07-14 16:29:52 +020070load("@com_apt_itude_rules_pip//rules:dependencies.bzl", "pip_rules_dependencies")
Sergiusz Bazanskide061802019-01-13 21:14:02 +010071
Serge Bazanski2ce36762019-07-14 16:29:52 +020072pip_rules_dependencies()
Sergiusz Bazanskide061802019-01-13 21:14:02 +010073
Serge Bazanski2ce36762019-07-14 16:29:52 +020074load("@com_apt_itude_rules_pip//rules:repository.bzl", "pip_repository")
75
76pip_repository(
77 name = "pip36",
78 python_interpreter = "python3.6",
79 requirements = "//pip:requirements-linux.txt",
Sergiusz Bazanskide061802019-01-13 21:14:02 +010080)
81
Sergiusz Bazanski65865332019-05-18 16:23:45 +020082# Docker base images
83
84load("@io_bazel_rules_docker//container:container.bzl", "container_pull")
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +020085
Sergiusz Bazanski65865332019-05-18 16:23:45 +020086container_pull(
87 name = "prodimage-bionic",
88 registry = "index.docker.io",
89 repository = "library/ubuntu",
90 tag = "bionic-20190515",
91 digest = "sha256:b36667c98cf8f68d4b7f1fb8e01f742c2ed26b5f0c965a788e98dfe589a4b3e4",
92)
93
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +020094container_pull(
95 name = "gerrit-3.0.0",
96 registry = "index.docker.io",
97 repository = "gerritcodereview/gerrit",
98 tag = "3.0.0-ubuntu18",
99 digest = "sha256:f107729011d8b81611e35a0ad452f21a424c1820664e9f95d135ad411e87b9bb",
100)
101
Sergiusz Bazanski65865332019-05-18 16:23:45 +0200102# HTTP stuff from the Internet
103load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
Sergiusz Bazanskic2924102019-06-30 17:35:57 +0200104
Sergiusz Bazanski65865332019-05-18 16:23:45 +0200105http_file(
Sergiusz Bazanski644f9ff2019-05-19 03:09:47 +0200106 name = "factorio-headless-0.16.51",
Sergiusz Bazanski65865332019-05-18 16:23:45 +0200107 urls = ["https://factorio.com/get-download/0.16.51/headless/linux64"],
Sergiusz Bazanski44116ea2019-05-18 16:26:56 +0200108 sha256 = "6cb09f5ac87f16f8d5b43cef26c0ae26cc46a57a0382e253dfda032dc5bb367f",
109 downloaded_file_path = "factorio.tar.xz",
Sergiusz Bazanski3e597182019-04-19 14:40:47 +0200110)
Sergiusz Bazanskic2924102019-06-30 17:35:57 +0200111
Sergiusz Bazanski644f9ff2019-05-19 03:09:47 +0200112http_file(
113 name = "factorio-headless-0.17.41",
114 urls = ["https://factorio.com/get-download/0.17.41/headless/linux64"],
115 sha256 = "bf2d16b23c3bbd97e41889d3e27670b6d958fa3d50f0befb41d234f735e8e6d1",
116 downloaded_file_path = "factorio.tar.xz",
117)
Sergiusz Bazanski3e597182019-04-19 14:40:47 +0200118
Sergiusz Bazanskic2924102019-06-30 17:35:57 +0200119http_file(
120 name = "factorio-headless-0.17.52",
121 urls = ["https://factorio.com/get-download/0.17.52/headless/linux64"],
122 sha256 = "24458a4e16875b0b63677b7e7a068ce2e5b298c110381d17c6f596fd1406db0e",
123 downloaded_file_path = "factorio.tar.xz",
124)
125
Sergiusz Bazanski3e597182019-04-19 14:40:47 +0200126# Go rules
Sergiusz Bazanski07529712019-01-18 01:24:38 +0100127
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100128http_archive(
129 name = "io_bazel_rules_go",
Sergiusz Bazanski1cace132019-07-13 16:16:34 +0200130 urls = [
131 "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz",
132 "https://github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz",
133 ],
134 sha256 = "45409e6c4f748baa9e05f8f6ab6efaa05739aa064e3ab94e5a1a09849c51806a",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100135)
136
Sergiusz Bazanski3a2a6932019-04-06 01:20:19 +0200137load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100138
139go_rules_dependencies()
140
141go_register_toolchains()
142
143# Go Gazelle rules
144
145http_archive(
146 name = "bazel_gazelle",
Sergiusz Bazanski258686c2019-05-01 12:26:43 +0200147 urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"],
148 sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100149)
150
151load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
152
153gazelle_dependencies()
154
Sergiusz Bazanski57efce62019-07-21 16:39:54 +0200155# For devtools/gerrit/gerrit-oauth-provider
Sergiusz Bazanski573da782019-06-21 19:59:52 +0200156
157git_repository(
158 name = "com_googlesource_gerrit_bazlets",
159 remote = "https://gerrit.googlesource.com/bazlets",
160 commit = "8528a0df69dadf6311d8d3f81c1b693afda8bcf1",
161)
162
163load(
164 "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl",
165 "gerrit_api",
166)
167
168gerrit_api()
169
170load("@com_googlesource_gerrit_bazlets//tools:maven_jar.bzl", "maven_jar")
171
172maven_jar(
173 name = "scribe",
174 artifact = "org.scribe:scribe:1.3.7",
175 sha1 = "583921bed46635d9f529ef5f14f7c9e83367bc6e",
176)
177
178maven_jar(
179 name = "commons-codec",
180 artifact = "commons-codec:commons-codec:1.4",
181 sha1 = "4216af16d38465bbab0f3dff8efa14204f7a399a",
182)
183
Sergiusz Bazanski356ea8b2019-07-21 23:56:43 +0200184# For devtools/bazel-cache
185
186git_repository(
187 name = "com_github_buchgr_bazel_remote",
188 remote = "https://github.com/buchgr/bazel-remote.git",
189 commit = "a9374e638411da72a2ef2a83f490e61e2d74a976",
190)
191
192# Go image repos for Docker
193
194load(
195 "@io_bazel_rules_docker//go:image.bzl",
196 go_image_repositories = "repositories",
197)
198
199go_image_repositories()
200
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100201# Go repositories
202
203go_repository(
204 name = "io_k8s_kubernetes",
205 importpath = "k8s.io/kubernetes",
206 # Get from HTTP instead, this repository is _big_
Sergiusz Bazanski4a024bb2019-05-17 18:10:02 +0200207 urls = ["https://github.com/kubernetes/kubernetes/archive/v1.14.2.tar.gz"],
208 sha256 = "1effa926aedb0ed51eadcef3d5d49fd9799ec4d018200f95f51fcaa2a2d2cbf4",
209 strip_prefix = "kubernetes-1.14.2",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100210)
211
212go_repository(
Sergiusz Bazanski4a024bb2019-05-17 18:10:02 +0200213 name = "io_k8s_repo_infra",
214 commit = "df02ded38f9506e5bbcbf21702034b4fef815f2f",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100215 importpath = "k8s.io/repo-infra",
216)
217
218go_repository(
219 name = "com_github_ksonnet_kubecfg",
220 commit = "59bc7dedf70e7496a2837207d8723f98f0e5f8e8",
221 importpath = "github.com/ksonnet/kubecfg",
222)
Sergiusz Bazanski07529712019-01-18 01:24:38 +0100223
224go_repository(
225 name = "com_github_projectcalico_calicoctl",
226 importpath = "github.com/projectcalico/calicoctl",
227 # This fork implements explicit Bazel rules
228 remote = "https://github.com/q3k/calicoctl",
229 vcs = "git",
230 commit = "1bc31862f07e7539ca493de9137ed1ad56cc9f43",
231 build_file_generation = "off",
232)
Sergiusz Bazanski9dc4b682019-04-05 23:51:49 +0200233
234go_repository(
235 name = "com_github_shirou_gopsutil",
236 commit = "2cbc9195c892b304060269ef280375236d2fcac9",
237 importpath = "github.com/shirou/gopsutil",
238)
Sergiusz Bazanskiacd001b2019-04-09 13:17:06 +0200239
240go_repository(
241 name = "com_github_cloudflare_cfssl",
242 commit = "768cd563887febaad559b511aaa5964823ccb4ab",
243 importpath = "github.com/cloudflare/cfssl",
244)
Sergiusz Bazanski258686c2019-05-01 12:26:43 +0200245
246go_repository(
247 name = "com_github_mattn_go_sqlite3",
248 commit = "5994cc52dfa89a4ee21ac891b06fbc1ea02c52d3",
249 importpath = "github.com/mattn/go-sqlite3",
250)
251
252go_repository(
253 name = "com_github_sebastiaanklippert_go_wkhtmltopdf",
254 commit = "72a7793efd38728796273861bb27d590cc33d9d4",
255 importpath = "github.com/sebastiaanklippert/go-wkhtmltopdf",
256)
Sergiusz Bazanski838cf652019-07-16 23:31:25 +0200257
258go_repository(
259 name = "com_github_ziutek_telnet",
260 commit = "c3b780dc415b28894076b4ec975ea3ea69e3980f",
261 importpath = "github.com/ziutek/telnet",
262)
263
264go_repository(
265 name = "com_github_ybbus_jsonrpc",
266 commit = "94088458a1e880219bd312fc0ccb8548993ebf80",
267 importpath = "github.com/ybbus/jsonrpc",
268)
269
270go_repository(
271 name = "com_github_digitalocean_go_netbox",
272 commit = "29433ec527e78486ea0a5758817ab672d977f90e",
273 importpath = "github.com/digitalocean/go-netbox",
274)
275
276go_repository(
277 name = "com_github_cenkalti_backoff",
278 commit = "4b4cebaf850ec58f1bb1fec5bdebdf8501c2bc3f",
279 importpath = "github.com/cenkalti/backoff",
280)
281
282go_repository(
283 name = "ml_vbom_util",
284 commit = "efcd4e0f97874370259c7d93e12aad57911dea81",
285 importpath = "vbom.ml/util",
286)
287
288go_repository(
289 name = "com_github_go_openapi_strfmt",
290 commit = "6faa644e1cdafc07f7b38eb06c1af5f92128f289",
291 importpath = "github.com/go-openapi/strfmt",
292)
293
294go_repository(
295 name = "com_github_go_openapi_swag",
296 commit = "de649ffb9e02183a414820c5b1b4582f7b009792",
297 importpath = "github.com/go-openapi/swag",
298)
299
300go_repository(
301 name = "com_github_go_openapi_errors",
302 commit = "9b273e805998abc751853b4e1574d66e5df888b4",
303 importpath = "github.com/go-openapi/errors",
304)
305
306go_repository(
307 name = "com_github_go_openapi_runtime",
308 commit = "58872d9a7ca5f28beff9effa19ac4c17d3e42cd3",
309 importpath = "github.com/go-openapi/runtime",
310)
311
312go_repository(
313 name = "com_github_go_openapi_validate",
314 commit = "6405b9095e4c96aabb45856da08a9323d50d9336",
315 importpath = "github.com/go-openapi/validate",
316)
317
318go_repository(
319 name = "com_github_mitchellh_mapstructure",
320 commit = "3536a929edddb9a5b34bd6861dc4a9647cb459fe",
321 importpath = "github.com/mitchellh/mapstructure",
322)
323
324go_repository(
325 name = "org_mongodb_go_mongo_driver",
326 commit = "9ec4480161a76f5267d56fc836b7f6d357fd9209",
327 importpath = "go.mongodb.org/mongo-driver",
328)
329
330go_repository(
331 name = "in_gopkg_yaml_v2",
332 commit = "51d6538a90f86fe93ac480b35f37b2be17fef232",
333 importpath = "gopkg.in/yaml.v2",
334)
335
336go_repository(
337 name = "com_github_asaskevich_govalidator",
338 commit = "f61b66f89f4a311bef65f13e575bcf1a2ffadda6",
339 importpath = "github.com/asaskevich/govalidator",
340)
341
342go_repository(
343 name = "com_github_go_openapi_spec",
344 commit = "bdfd7e07daecc404d77868a88b2364d0aed0ee5a",
345 importpath = "github.com/go-openapi/spec",
346)
347
348go_repository(
349 name = "com_github_mailru_easyjson",
350 commit = "b2ccc519800e761ac8000b95e5d57c80a897ff9e",
351 importpath = "github.com/mailru/easyjson",
352)
353
354go_repository(
355 name = "com_github_go_openapi_analysis",
356 commit = "48f4521ad6c3df9d6192efb04287c4a411e1f806",
357 importpath = "github.com/go-openapi/analysis",
358)
359
360go_repository(
361 name = "com_github_go_openapi_jsonpointer",
362 commit = "a105a905c5e6ad147f08504784917f3e178e0ba5",
363 importpath = "github.com/go-openapi/jsonpointer",
364)
365
366go_repository(
367 name = "com_github_go_openapi_loads",
368 commit = "8548893a17237be4a5b2f74773f23002f4179bbe",
369 importpath = "github.com/go-openapi/loads",
370)
371
372go_repository(
373 name = "com_github_go_openapi_jsonreference",
374 commit = "2903bfd4bfbaf188694f1edf731f2725a8fa344f",
375 importpath = "github.com/go-openapi/jsonreference",
376)
377
378go_repository(
379 name = "com_github_puerkitobio_purell",
380 commit = "44968752391892e1b0d0b821ee79e9a85fa13049",
381 importpath = "github.com/PuerkitoBio/purell",
382)
383
384go_repository(
385 name = "com_github_puerkitobio_urlesc",
386 commit = "de5bf2ad457846296e2031421a34e2568e304e35",
387 importpath = "github.com/PuerkitoBio/urlesc",
388)
Sergiusz Bazanski8fe651b2019-07-21 23:50:05 +0200389
390go_repository(
391 name = "com_github_abbot_go_http_auth",
392 commit = "860ed7f246ff5abfdbd5c7ce618fd37b49fd3d86",
393 importpath = "github.com/abbot/go-http-auth",
394)
395
396go_repository(
397 name = "com_github_urfave_cli",
398 commit = "693af58b4d51b8fcc7f9d89576da170765980581",
399 importpath = "github.com/urfave/cli",
400)
401
402go_repository(
403 name = "org_golang_x_crypto",
404 commit = "4def268fd1a49955bfb3dda92fe3db4f924f2285",
405 importpath = "golang.org/x/crypto",
406)
407
408go_repository(
409 name = "org_golang_x_oauth2",
410 commit = "0f29369cfe4552d0e4bcddc57cc75f4d7e672a33",
411 importpath = "golang.org/x/oauth2",
412)
413
414go_repository(
415 name = "com_github_djherbis_atime",
416 commit = "2d569978378562c466df74eda2d82900f435c5f4",
417 importpath = "github.com/djherbis/atime",
418)
419
420go_repository(
421 name = "com_google_cloud_go",
422 commit = "71971b35976fc2f904ed2772536790a5458d9996",
423 importpath = "cloud.google.com/go",
424)
425
426go_repository(
427 name = "org_golang_x_net",
428 commit = "da137c7871d730100384dbcf36e6f8fa493aef5b",
429 importpath = "golang.org/x/net",
430)
431
432go_repository(
433 name = "com_github_stackexchange_wmi",
434 commit = "cbe66965904dbe8a6cd589e2298e5d8b986bd7dd",
435 importpath = "github.com/stackexchange/wmi",
436)
437
438go_repository(
439 name = "com_github_go_ole_go_ole",
440 commit = "938323a72016e9cf84fa5fba7635089efb0ad87f",
441 importpath = "github.com/go-ole/go-ole",
442)
443
444go_repository(
445 name = "com_github_dustin_go_humanize",
446 commit = "9f541cc9db5d55bce703bd99987c9d5cb8eea45e",
447 importpath = "github.com/dustin/go-humanize",
448)
449
450go_repository(
451 name = "io_k8s_client_go",
452 commit = "0c47f9da00011ea9a8717671127ac21625c7a6c0",
453 importpath = "k8s.io/client-go",
454)
455
456go_repository(
457 name = "io_k8s_apimachinery",
458 commit = "bfcf53abc9f82bad3e534fcb1c36599d3c989ebf",
459 importpath = "k8s.io/apimachinery",
460 build_file_proto_mode = "disable",
461)
462
463go_repository(
464 name = "io_k8s_klog",
465 commit = "6a023d6d0e0954feabd46dc2d3a6a2c3c991fe1a",
466 importpath = "k8s.io/klog",
467)
468
469go_repository(
470 name = "io_k8s_utils",
471 commit = "3dccf664f023863740c508fb4284e49742bedfa4",
472 importpath = "k8s.io/utils",
473)
474
475go_repository(
476 name = "com_github_googleapis_gnostic",
477 commit = "25d8b0b6698593f520d9d8dc5a88e6b16ca9ecc0",
478 importpath = "github.com/googleapis/gnostic",
479)
480
481go_repository(
482 name = "io_k8s_api",
483 commit = "3043179095b6baa0087e8735d796bd6dfa881f8e",
484 importpath = "k8s.io/api",
485 build_file_proto_mode = "disable",
486)
487
488go_repository(
489 name = "org_golang_x_time",
490 commit = "9d24e82272b4f38b78bc8cff74fa936d31ccd8ef",
491 importpath = "golang.org/x/time",
492)
493
494go_repository(
495 name = "com_github_google_gofuzz",
496 commit = "f140a6486e521aad38f5917de355cbf147cc0496",
497 importpath = "github.com/google/gofuzz",
498)
499
500go_repository(
501 name = "io_k8s_sigs_yaml",
502 commit = "4cd0c284b15f1735b8cc247df097d262b8903f9f",
503 importpath = "sigs.k8s.io/yaml",
504)
505
506go_repository(
507 name = "com_github_modern_go_reflect2",
508 commit = "94122c33edd36123c84d5368cfb2b69df93a0ec8",
509 importpath = "github.com/modern-go/reflect2",
510)
511
512go_repository(
513 name = "com_github_davecgh_go_spew",
514 commit = "d8f796af33cc11cb798c1aaeb27a4ebc5099927d",
515 importpath = "github.com/davecgh/go-spew",
516)
517
518go_repository(
519 name = "com_github_json_iterator_go",
520 commit = "27518f6661eba504be5a7a9a9f6d9460d892ade3",
521 importpath = "github.com/json-iterator/go",
522)
523
524go_repository(
525 name = "com_github_modern_go_concurrent",
526 commit = "bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94",
527 importpath = "github.com/modern-go/concurrent",
528)
529
530go_repository(
531 name = "in_gopkg_inf_v0",
532 commit = "d2d2541c53f18d2a059457998ce2876cc8e67cbf",
533 importpath = "gopkg.in/inf.v0",
534)