blob: 7b6561d1a7c7ceaa16517ae176cab9fde2c9a943 [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
24load(
25 "@io_bazel_rules_docker//repositories:repositories.bzl",
26 container_repositories = "repositories",
27)
28
29container_repositories()
Sergiusz Bazanski8fe651b2019-07-21 23:50:05 +020030
Sergiusz Bazanski1e6b52a2019-05-15 19:08:25 +020031# Nix rules
32http_archive(
33 name = "io_tweag_rules_nixpkgs",
34 strip_prefix = "rules_nixpkgs-364adc70f32c2b3982995fce06b334f4d159070e",
35 urls = ["https://github.com/tweag/rules_nixpkgs/archive/364adc70f32c2b3982995fce06b334f4d159070e.tar.gz"],
36)
37
38# Nix packages
39
40load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_git_repository", "nixpkgs_package")
Sergiusz Bazanskic2924102019-06-30 17:35:57 +020041
Sergiusz Bazanski1e6b52a2019-05-15 19:08:25 +020042nixpkgs_git_repository(
43 name = "nixpkgs",
44 revision = "2f1f9a9fe8a3c22f0677733523eaf6bd33995d50",
45)
46
47nixpkgs_package(
48 name = "nixops",
Sergiusz Bazanski44116ea2019-05-18 16:26:56 +020049 attribute_path = "nixops",
Sergiusz Bazanskic2924102019-06-30 17:35:57 +020050 repositories = {"nixpkgs": "@nixpkgs"},
Sergiusz Bazanski1e6b52a2019-05-15 19:08:25 +020051)
52
Sergiusz Bazanski3e597182019-04-19 14:40:47 +020053# Python rules
Serge Bazanski2ce36762019-07-14 16:29:52 +020054
Sergiusz Bazanskide061802019-01-13 21:14:02 +010055git_repository(
Serge Bazanski2ce36762019-07-14 16:29:52 +020056 name = "com_apt_itude_rules_pip",
Sergiusz Bazanskid5ac5d12019-07-19 20:53:21 +020057 commit = "ce667087818553cdc4b1a2258fc53df917c4f87c",
Serge Bazanski2ce36762019-07-14 16:29:52 +020058 remote = "https://github.com/apt-itude/rules_pip.git",
Sergiusz Bazanskide061802019-01-13 21:14:02 +010059)
60
61# Python dependencies
Serge Bazanski2ce36762019-07-14 16:29:52 +020062load("@com_apt_itude_rules_pip//rules:dependencies.bzl", "pip_rules_dependencies")
Sergiusz Bazanskide061802019-01-13 21:14:02 +010063
Serge Bazanski2ce36762019-07-14 16:29:52 +020064pip_rules_dependencies()
Sergiusz Bazanskide061802019-01-13 21:14:02 +010065
Serge Bazanski2ce36762019-07-14 16:29:52 +020066load("@com_apt_itude_rules_pip//rules:repository.bzl", "pip_repository")
67
68pip_repository(
69 name = "pip36",
70 python_interpreter = "python3.6",
71 requirements = "//pip:requirements-linux.txt",
Sergiusz Bazanskide061802019-01-13 21:14:02 +010072)
73
Sergiusz Bazanski65865332019-05-18 16:23:45 +020074# Docker base images
75
76load("@io_bazel_rules_docker//container:container.bzl", "container_pull")
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +020077
Sergiusz Bazanski65865332019-05-18 16:23:45 +020078container_pull(
79 name = "prodimage-bionic",
80 registry = "index.docker.io",
81 repository = "library/ubuntu",
82 tag = "bionic-20190515",
83 digest = "sha256:b36667c98cf8f68d4b7f1fb8e01f742c2ed26b5f0c965a788e98dfe589a4b3e4",
84)
85
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +020086container_pull(
87 name = "gerrit-3.0.0",
88 registry = "index.docker.io",
89 repository = "gerritcodereview/gerrit",
90 tag = "3.0.0-ubuntu18",
91 digest = "sha256:f107729011d8b81611e35a0ad452f21a424c1820664e9f95d135ad411e87b9bb",
92)
93
Sergiusz Bazanski65865332019-05-18 16:23:45 +020094# HTTP stuff from the Internet
95load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
Sergiusz Bazanskic2924102019-06-30 17:35:57 +020096
Sergiusz Bazanski65865332019-05-18 16:23:45 +020097http_file(
Sergiusz Bazanski644f9ff2019-05-19 03:09:47 +020098 name = "factorio-headless-0.16.51",
Sergiusz Bazanski65865332019-05-18 16:23:45 +020099 urls = ["https://factorio.com/get-download/0.16.51/headless/linux64"],
Sergiusz Bazanski44116ea2019-05-18 16:26:56 +0200100 sha256 = "6cb09f5ac87f16f8d5b43cef26c0ae26cc46a57a0382e253dfda032dc5bb367f",
101 downloaded_file_path = "factorio.tar.xz",
Sergiusz Bazanski3e597182019-04-19 14:40:47 +0200102)
Sergiusz Bazanskic2924102019-06-30 17:35:57 +0200103
Sergiusz Bazanski644f9ff2019-05-19 03:09:47 +0200104http_file(
105 name = "factorio-headless-0.17.41",
106 urls = ["https://factorio.com/get-download/0.17.41/headless/linux64"],
107 sha256 = "bf2d16b23c3bbd97e41889d3e27670b6d958fa3d50f0befb41d234f735e8e6d1",
108 downloaded_file_path = "factorio.tar.xz",
109)
Sergiusz Bazanski3e597182019-04-19 14:40:47 +0200110
Sergiusz Bazanskic2924102019-06-30 17:35:57 +0200111http_file(
112 name = "factorio-headless-0.17.52",
113 urls = ["https://factorio.com/get-download/0.17.52/headless/linux64"],
114 sha256 = "24458a4e16875b0b63677b7e7a068ce2e5b298c110381d17c6f596fd1406db0e",
115 downloaded_file_path = "factorio.tar.xz",
116)
117
Sergiusz Bazanski3e597182019-04-19 14:40:47 +0200118# Go rules
Sergiusz Bazanski07529712019-01-18 01:24:38 +0100119
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100120http_archive(
121 name = "io_bazel_rules_go",
Sergiusz Bazanski1cace132019-07-13 16:16:34 +0200122 urls = [
123 "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz",
124 "https://github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz",
125 ],
126 sha256 = "45409e6c4f748baa9e05f8f6ab6efaa05739aa064e3ab94e5a1a09849c51806a",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100127)
128
Sergiusz Bazanski3a2a6932019-04-06 01:20:19 +0200129load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100130
131go_rules_dependencies()
132
133go_register_toolchains()
134
135# Go Gazelle rules
136
137http_archive(
138 name = "bazel_gazelle",
Sergiusz Bazanski258686c2019-05-01 12:26:43 +0200139 urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"],
140 sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100141)
142
143load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
144
145gazelle_dependencies()
146
Sergiusz Bazanski57efce62019-07-21 16:39:54 +0200147# For devtools/gerrit/gerrit-oauth-provider
Sergiusz Bazanski573da782019-06-21 19:59:52 +0200148
149git_repository(
150 name = "com_googlesource_gerrit_bazlets",
151 remote = "https://gerrit.googlesource.com/bazlets",
152 commit = "8528a0df69dadf6311d8d3f81c1b693afda8bcf1",
153)
154
155load(
156 "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl",
157 "gerrit_api",
158)
159
160gerrit_api()
161
162load("@com_googlesource_gerrit_bazlets//tools:maven_jar.bzl", "maven_jar")
163
164maven_jar(
165 name = "scribe",
166 artifact = "org.scribe:scribe:1.3.7",
167 sha1 = "583921bed46635d9f529ef5f14f7c9e83367bc6e",
168)
169
170maven_jar(
171 name = "commons-codec",
172 artifact = "commons-codec:commons-codec:1.4",
173 sha1 = "4216af16d38465bbab0f3dff8efa14204f7a399a",
174)
175
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100176# Go repositories
177
178go_repository(
179 name = "io_k8s_kubernetes",
180 importpath = "k8s.io/kubernetes",
181 # Get from HTTP instead, this repository is _big_
Sergiusz Bazanski4a024bb2019-05-17 18:10:02 +0200182 urls = ["https://github.com/kubernetes/kubernetes/archive/v1.14.2.tar.gz"],
183 sha256 = "1effa926aedb0ed51eadcef3d5d49fd9799ec4d018200f95f51fcaa2a2d2cbf4",
184 strip_prefix = "kubernetes-1.14.2",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100185)
186
187go_repository(
Sergiusz Bazanski4a024bb2019-05-17 18:10:02 +0200188 name = "io_k8s_repo_infra",
189 commit = "df02ded38f9506e5bbcbf21702034b4fef815f2f",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100190 importpath = "k8s.io/repo-infra",
191)
192
193go_repository(
194 name = "com_github_ksonnet_kubecfg",
195 commit = "59bc7dedf70e7496a2837207d8723f98f0e5f8e8",
196 importpath = "github.com/ksonnet/kubecfg",
197)
Sergiusz Bazanski07529712019-01-18 01:24:38 +0100198
199go_repository(
200 name = "com_github_projectcalico_calicoctl",
201 importpath = "github.com/projectcalico/calicoctl",
202 # This fork implements explicit Bazel rules
203 remote = "https://github.com/q3k/calicoctl",
204 vcs = "git",
205 commit = "1bc31862f07e7539ca493de9137ed1ad56cc9f43",
206 build_file_generation = "off",
207)
Sergiusz Bazanski9dc4b682019-04-05 23:51:49 +0200208
209go_repository(
210 name = "com_github_shirou_gopsutil",
211 commit = "2cbc9195c892b304060269ef280375236d2fcac9",
212 importpath = "github.com/shirou/gopsutil",
213)
Sergiusz Bazanskiacd001b2019-04-09 13:17:06 +0200214
215go_repository(
216 name = "com_github_cloudflare_cfssl",
217 commit = "768cd563887febaad559b511aaa5964823ccb4ab",
218 importpath = "github.com/cloudflare/cfssl",
219)
Sergiusz Bazanski258686c2019-05-01 12:26:43 +0200220
221go_repository(
222 name = "com_github_mattn_go_sqlite3",
223 commit = "5994cc52dfa89a4ee21ac891b06fbc1ea02c52d3",
224 importpath = "github.com/mattn/go-sqlite3",
225)
226
227go_repository(
228 name = "com_github_sebastiaanklippert_go_wkhtmltopdf",
229 commit = "72a7793efd38728796273861bb27d590cc33d9d4",
230 importpath = "github.com/sebastiaanklippert/go-wkhtmltopdf",
231)
Sergiusz Bazanski838cf652019-07-16 23:31:25 +0200232
233go_repository(
234 name = "com_github_ziutek_telnet",
235 commit = "c3b780dc415b28894076b4ec975ea3ea69e3980f",
236 importpath = "github.com/ziutek/telnet",
237)
238
239go_repository(
240 name = "com_github_ybbus_jsonrpc",
241 commit = "94088458a1e880219bd312fc0ccb8548993ebf80",
242 importpath = "github.com/ybbus/jsonrpc",
243)
244
245go_repository(
246 name = "com_github_digitalocean_go_netbox",
247 commit = "29433ec527e78486ea0a5758817ab672d977f90e",
248 importpath = "github.com/digitalocean/go-netbox",
249)
250
251go_repository(
252 name = "com_github_cenkalti_backoff",
253 commit = "4b4cebaf850ec58f1bb1fec5bdebdf8501c2bc3f",
254 importpath = "github.com/cenkalti/backoff",
255)
256
257go_repository(
258 name = "ml_vbom_util",
259 commit = "efcd4e0f97874370259c7d93e12aad57911dea81",
260 importpath = "vbom.ml/util",
261)
262
263go_repository(
264 name = "com_github_go_openapi_strfmt",
265 commit = "6faa644e1cdafc07f7b38eb06c1af5f92128f289",
266 importpath = "github.com/go-openapi/strfmt",
267)
268
269go_repository(
270 name = "com_github_go_openapi_swag",
271 commit = "de649ffb9e02183a414820c5b1b4582f7b009792",
272 importpath = "github.com/go-openapi/swag",
273)
274
275go_repository(
276 name = "com_github_go_openapi_errors",
277 commit = "9b273e805998abc751853b4e1574d66e5df888b4",
278 importpath = "github.com/go-openapi/errors",
279)
280
281go_repository(
282 name = "com_github_go_openapi_runtime",
283 commit = "58872d9a7ca5f28beff9effa19ac4c17d3e42cd3",
284 importpath = "github.com/go-openapi/runtime",
285)
286
287go_repository(
288 name = "com_github_go_openapi_validate",
289 commit = "6405b9095e4c96aabb45856da08a9323d50d9336",
290 importpath = "github.com/go-openapi/validate",
291)
292
293go_repository(
294 name = "com_github_mitchellh_mapstructure",
295 commit = "3536a929edddb9a5b34bd6861dc4a9647cb459fe",
296 importpath = "github.com/mitchellh/mapstructure",
297)
298
299go_repository(
300 name = "org_mongodb_go_mongo_driver",
301 commit = "9ec4480161a76f5267d56fc836b7f6d357fd9209",
302 importpath = "go.mongodb.org/mongo-driver",
303)
304
305go_repository(
306 name = "in_gopkg_yaml_v2",
307 commit = "51d6538a90f86fe93ac480b35f37b2be17fef232",
308 importpath = "gopkg.in/yaml.v2",
309)
310
311go_repository(
312 name = "com_github_asaskevich_govalidator",
313 commit = "f61b66f89f4a311bef65f13e575bcf1a2ffadda6",
314 importpath = "github.com/asaskevich/govalidator",
315)
316
317go_repository(
318 name = "com_github_go_openapi_spec",
319 commit = "bdfd7e07daecc404d77868a88b2364d0aed0ee5a",
320 importpath = "github.com/go-openapi/spec",
321)
322
323go_repository(
324 name = "com_github_mailru_easyjson",
325 commit = "b2ccc519800e761ac8000b95e5d57c80a897ff9e",
326 importpath = "github.com/mailru/easyjson",
327)
328
329go_repository(
330 name = "com_github_go_openapi_analysis",
331 commit = "48f4521ad6c3df9d6192efb04287c4a411e1f806",
332 importpath = "github.com/go-openapi/analysis",
333)
334
335go_repository(
336 name = "com_github_go_openapi_jsonpointer",
337 commit = "a105a905c5e6ad147f08504784917f3e178e0ba5",
338 importpath = "github.com/go-openapi/jsonpointer",
339)
340
341go_repository(
342 name = "com_github_go_openapi_loads",
343 commit = "8548893a17237be4a5b2f74773f23002f4179bbe",
344 importpath = "github.com/go-openapi/loads",
345)
346
347go_repository(
348 name = "com_github_go_openapi_jsonreference",
349 commit = "2903bfd4bfbaf188694f1edf731f2725a8fa344f",
350 importpath = "github.com/go-openapi/jsonreference",
351)
352
353go_repository(
354 name = "com_github_puerkitobio_purell",
355 commit = "44968752391892e1b0d0b821ee79e9a85fa13049",
356 importpath = "github.com/PuerkitoBio/purell",
357)
358
359go_repository(
360 name = "com_github_puerkitobio_urlesc",
361 commit = "de5bf2ad457846296e2031421a34e2568e304e35",
362 importpath = "github.com/PuerkitoBio/urlesc",
363)
Sergiusz Bazanski8fe651b2019-07-21 23:50:05 +0200364
365go_repository(
366 name = "com_github_abbot_go_http_auth",
367 commit = "860ed7f246ff5abfdbd5c7ce618fd37b49fd3d86",
368 importpath = "github.com/abbot/go-http-auth",
369)
370
371go_repository(
372 name = "com_github_urfave_cli",
373 commit = "693af58b4d51b8fcc7f9d89576da170765980581",
374 importpath = "github.com/urfave/cli",
375)
376
377go_repository(
378 name = "org_golang_x_crypto",
379 commit = "4def268fd1a49955bfb3dda92fe3db4f924f2285",
380 importpath = "golang.org/x/crypto",
381)
382
383go_repository(
384 name = "org_golang_x_oauth2",
385 commit = "0f29369cfe4552d0e4bcddc57cc75f4d7e672a33",
386 importpath = "golang.org/x/oauth2",
387)
388
389go_repository(
390 name = "com_github_djherbis_atime",
391 commit = "2d569978378562c466df74eda2d82900f435c5f4",
392 importpath = "github.com/djherbis/atime",
393)
394
395go_repository(
396 name = "com_google_cloud_go",
397 commit = "71971b35976fc2f904ed2772536790a5458d9996",
398 importpath = "cloud.google.com/go",
399)
400
401go_repository(
402 name = "org_golang_x_net",
403 commit = "da137c7871d730100384dbcf36e6f8fa493aef5b",
404 importpath = "golang.org/x/net",
405)
406
407go_repository(
408 name = "com_github_stackexchange_wmi",
409 commit = "cbe66965904dbe8a6cd589e2298e5d8b986bd7dd",
410 importpath = "github.com/stackexchange/wmi",
411)
412
413go_repository(
414 name = "com_github_go_ole_go_ole",
415 commit = "938323a72016e9cf84fa5fba7635089efb0ad87f",
416 importpath = "github.com/go-ole/go-ole",
417)
418
419go_repository(
420 name = "com_github_dustin_go_humanize",
421 commit = "9f541cc9db5d55bce703bd99987c9d5cb8eea45e",
422 importpath = "github.com/dustin/go-humanize",
423)
424
425go_repository(
426 name = "io_k8s_client_go",
427 commit = "0c47f9da00011ea9a8717671127ac21625c7a6c0",
428 importpath = "k8s.io/client-go",
429)
430
431go_repository(
432 name = "io_k8s_apimachinery",
433 commit = "bfcf53abc9f82bad3e534fcb1c36599d3c989ebf",
434 importpath = "k8s.io/apimachinery",
435 build_file_proto_mode = "disable",
436)
437
438go_repository(
439 name = "io_k8s_klog",
440 commit = "6a023d6d0e0954feabd46dc2d3a6a2c3c991fe1a",
441 importpath = "k8s.io/klog",
442)
443
444go_repository(
445 name = "io_k8s_utils",
446 commit = "3dccf664f023863740c508fb4284e49742bedfa4",
447 importpath = "k8s.io/utils",
448)
449
450go_repository(
451 name = "com_github_googleapis_gnostic",
452 commit = "25d8b0b6698593f520d9d8dc5a88e6b16ca9ecc0",
453 importpath = "github.com/googleapis/gnostic",
454)
455
456go_repository(
457 name = "io_k8s_api",
458 commit = "3043179095b6baa0087e8735d796bd6dfa881f8e",
459 importpath = "k8s.io/api",
460 build_file_proto_mode = "disable",
461)
462
463go_repository(
464 name = "org_golang_x_time",
465 commit = "9d24e82272b4f38b78bc8cff74fa936d31ccd8ef",
466 importpath = "golang.org/x/time",
467)
468
469go_repository(
470 name = "com_github_google_gofuzz",
471 commit = "f140a6486e521aad38f5917de355cbf147cc0496",
472 importpath = "github.com/google/gofuzz",
473)
474
475go_repository(
476 name = "io_k8s_sigs_yaml",
477 commit = "4cd0c284b15f1735b8cc247df097d262b8903f9f",
478 importpath = "sigs.k8s.io/yaml",
479)
480
481go_repository(
482 name = "com_github_modern_go_reflect2",
483 commit = "94122c33edd36123c84d5368cfb2b69df93a0ec8",
484 importpath = "github.com/modern-go/reflect2",
485)
486
487go_repository(
488 name = "com_github_davecgh_go_spew",
489 commit = "d8f796af33cc11cb798c1aaeb27a4ebc5099927d",
490 importpath = "github.com/davecgh/go-spew",
491)
492
493go_repository(
494 name = "com_github_json_iterator_go",
495 commit = "27518f6661eba504be5a7a9a9f6d9460d892ade3",
496 importpath = "github.com/json-iterator/go",
497)
498
499go_repository(
500 name = "com_github_modern_go_concurrent",
501 commit = "bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94",
502 importpath = "github.com/modern-go/concurrent",
503)
504
505go_repository(
506 name = "in_gopkg_inf_v0",
507 commit = "d2d2541c53f18d2a059457998ce2876cc8e67cbf",
508 importpath = "gopkg.in/inf.v0",
509)