blob: 64509871f2480aed4161c86fd2746b0220454d9a [file] [log] [blame]
Serge Bazanski2ce36762019-07-14 16:29:52 +02001
Sergiusz Bazanskide061802019-01-13 21:14:02 +01002load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
Sergiusz Bazanski3e597182019-04-19 14:40:47 +02003load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Sergiusz Bazanskide061802019-01-13 21:14:02 +01004
Serge Bazanski2ce36762019-07-14 16:29:52 +02005# Skylib
6
7skylib_version = "0.8.0"
8http_archive(
9 name = "bazel_skylib",
10 type = "tar.gz",
11 url = "https://github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel-skylib.{}.tar.gz".format (skylib_version, skylib_version),
12 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 Bazanski1e6b52a2019-05-15 19:08:25 +020030# Nix rules
31http_archive(
32 name = "io_tweag_rules_nixpkgs",
33 strip_prefix = "rules_nixpkgs-364adc70f32c2b3982995fce06b334f4d159070e",
34 urls = ["https://github.com/tweag/rules_nixpkgs/archive/364adc70f32c2b3982995fce06b334f4d159070e.tar.gz"],
35)
36
37# Nix packages
38
39load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_git_repository", "nixpkgs_package")
Sergiusz Bazanskic2924102019-06-30 17:35:57 +020040
Sergiusz Bazanski1e6b52a2019-05-15 19:08:25 +020041nixpkgs_git_repository(
42 name = "nixpkgs",
43 revision = "2f1f9a9fe8a3c22f0677733523eaf6bd33995d50",
44)
45
46nixpkgs_package(
47 name = "nixops",
Sergiusz Bazanski44116ea2019-05-18 16:26:56 +020048 attribute_path = "nixops",
Sergiusz Bazanskic2924102019-06-30 17:35:57 +020049 repositories = {"nixpkgs": "@nixpkgs"},
Sergiusz Bazanski1e6b52a2019-05-15 19:08:25 +020050)
51
Sergiusz Bazanski3e597182019-04-19 14:40:47 +020052# Python rules
Serge Bazanski2ce36762019-07-14 16:29:52 +020053
Sergiusz Bazanskide061802019-01-13 21:14:02 +010054git_repository(
Serge Bazanski2ce36762019-07-14 16:29:52 +020055 name = "com_apt_itude_rules_pip",
Sergiusz Bazanskid5ac5d12019-07-19 20:53:21 +020056 commit = "ce667087818553cdc4b1a2258fc53df917c4f87c",
Serge Bazanski2ce36762019-07-14 16:29:52 +020057 remote = "https://github.com/apt-itude/rules_pip.git",
Sergiusz Bazanskide061802019-01-13 21:14:02 +010058)
59
60# Python dependencies
Serge Bazanski2ce36762019-07-14 16:29:52 +020061load("@com_apt_itude_rules_pip//rules:dependencies.bzl", "pip_rules_dependencies")
Sergiusz Bazanskide061802019-01-13 21:14:02 +010062
Serge Bazanski2ce36762019-07-14 16:29:52 +020063pip_rules_dependencies()
Sergiusz Bazanskide061802019-01-13 21:14:02 +010064
Serge Bazanski2ce36762019-07-14 16:29:52 +020065load("@com_apt_itude_rules_pip//rules:repository.bzl", "pip_repository")
66
67pip_repository(
68 name = "pip36",
69 python_interpreter = "python3.6",
70 requirements = "//pip:requirements-linux.txt",
Sergiusz Bazanskide061802019-01-13 21:14:02 +010071)
72
Sergiusz Bazanski65865332019-05-18 16:23:45 +020073# Docker base images
74
75load("@io_bazel_rules_docker//container:container.bzl", "container_pull")
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +020076
Sergiusz Bazanski65865332019-05-18 16:23:45 +020077container_pull(
78 name = "prodimage-bionic",
79 registry = "index.docker.io",
80 repository = "library/ubuntu",
81 tag = "bionic-20190515",
82 digest = "sha256:b36667c98cf8f68d4b7f1fb8e01f742c2ed26b5f0c965a788e98dfe589a4b3e4",
83)
84
Sergiusz Bazanskia7e26cc2019-06-21 20:38:35 +020085container_pull(
86 name = "gerrit-3.0.0",
87 registry = "index.docker.io",
88 repository = "gerritcodereview/gerrit",
89 tag = "3.0.0-ubuntu18",
90 digest = "sha256:f107729011d8b81611e35a0ad452f21a424c1820664e9f95d135ad411e87b9bb",
91)
92
Sergiusz Bazanski65865332019-05-18 16:23:45 +020093# HTTP stuff from the Internet
94load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
Sergiusz Bazanskic2924102019-06-30 17:35:57 +020095
Sergiusz Bazanski65865332019-05-18 16:23:45 +020096http_file(
Sergiusz Bazanski644f9ff2019-05-19 03:09:47 +020097 name = "factorio-headless-0.16.51",
Sergiusz Bazanski65865332019-05-18 16:23:45 +020098 urls = ["https://factorio.com/get-download/0.16.51/headless/linux64"],
Sergiusz Bazanski44116ea2019-05-18 16:26:56 +020099 sha256 = "6cb09f5ac87f16f8d5b43cef26c0ae26cc46a57a0382e253dfda032dc5bb367f",
100 downloaded_file_path = "factorio.tar.xz",
Sergiusz Bazanski3e597182019-04-19 14:40:47 +0200101)
Sergiusz Bazanskic2924102019-06-30 17:35:57 +0200102
Sergiusz Bazanski644f9ff2019-05-19 03:09:47 +0200103http_file(
104 name = "factorio-headless-0.17.41",
105 urls = ["https://factorio.com/get-download/0.17.41/headless/linux64"],
106 sha256 = "bf2d16b23c3bbd97e41889d3e27670b6d958fa3d50f0befb41d234f735e8e6d1",
107 downloaded_file_path = "factorio.tar.xz",
108)
Sergiusz Bazanski3e597182019-04-19 14:40:47 +0200109
Sergiusz Bazanskic2924102019-06-30 17:35:57 +0200110http_file(
111 name = "factorio-headless-0.17.52",
112 urls = ["https://factorio.com/get-download/0.17.52/headless/linux64"],
113 sha256 = "24458a4e16875b0b63677b7e7a068ce2e5b298c110381d17c6f596fd1406db0e",
114 downloaded_file_path = "factorio.tar.xz",
115)
116
Sergiusz Bazanski3e597182019-04-19 14:40:47 +0200117# Go rules
Sergiusz Bazanski07529712019-01-18 01:24:38 +0100118
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100119http_archive(
120 name = "io_bazel_rules_go",
Sergiusz Bazanski1cace132019-07-13 16:16:34 +0200121 urls = [
122 "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz",
123 "https://github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz",
124 ],
125 sha256 = "45409e6c4f748baa9e05f8f6ab6efaa05739aa064e3ab94e5a1a09849c51806a",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100126)
127
Sergiusz Bazanski3a2a6932019-04-06 01:20:19 +0200128load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100129
130go_rules_dependencies()
131
132go_register_toolchains()
133
134# Go Gazelle rules
135
136http_archive(
137 name = "bazel_gazelle",
Sergiusz Bazanski258686c2019-05-01 12:26:43 +0200138 urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"],
139 sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100140)
141
142load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
143
144gazelle_dependencies()
145
Sergiusz Bazanski573da782019-06-21 19:59:52 +0200146# For app/gerrit/gerrit-oauth-provider
147
148git_repository(
149 name = "com_googlesource_gerrit_bazlets",
150 remote = "https://gerrit.googlesource.com/bazlets",
151 commit = "8528a0df69dadf6311d8d3f81c1b693afda8bcf1",
152)
153
154load(
155 "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl",
156 "gerrit_api",
157)
158
159gerrit_api()
160
161load("@com_googlesource_gerrit_bazlets//tools:maven_jar.bzl", "maven_jar")
162
163maven_jar(
164 name = "scribe",
165 artifact = "org.scribe:scribe:1.3.7",
166 sha1 = "583921bed46635d9f529ef5f14f7c9e83367bc6e",
167)
168
169maven_jar(
170 name = "commons-codec",
171 artifact = "commons-codec:commons-codec:1.4",
172 sha1 = "4216af16d38465bbab0f3dff8efa14204f7a399a",
173)
174
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100175# Go repositories
176
177go_repository(
178 name = "io_k8s_kubernetes",
179 importpath = "k8s.io/kubernetes",
180 # Get from HTTP instead, this repository is _big_
Sergiusz Bazanski4a024bb2019-05-17 18:10:02 +0200181 urls = ["https://github.com/kubernetes/kubernetes/archive/v1.14.2.tar.gz"],
182 sha256 = "1effa926aedb0ed51eadcef3d5d49fd9799ec4d018200f95f51fcaa2a2d2cbf4",
183 strip_prefix = "kubernetes-1.14.2",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100184)
185
186go_repository(
Sergiusz Bazanski4a024bb2019-05-17 18:10:02 +0200187 name = "io_k8s_repo_infra",
188 commit = "df02ded38f9506e5bbcbf21702034b4fef815f2f",
Sergiusz Bazanskif2a812b2019-01-13 17:51:34 +0100189 importpath = "k8s.io/repo-infra",
190)
191
192go_repository(
193 name = "com_github_ksonnet_kubecfg",
194 commit = "59bc7dedf70e7496a2837207d8723f98f0e5f8e8",
195 importpath = "github.com/ksonnet/kubecfg",
196)
Sergiusz Bazanski07529712019-01-18 01:24:38 +0100197
198go_repository(
199 name = "com_github_projectcalico_calicoctl",
200 importpath = "github.com/projectcalico/calicoctl",
201 # This fork implements explicit Bazel rules
202 remote = "https://github.com/q3k/calicoctl",
203 vcs = "git",
204 commit = "1bc31862f07e7539ca493de9137ed1ad56cc9f43",
205 build_file_generation = "off",
206)
Sergiusz Bazanski9dc4b682019-04-05 23:51:49 +0200207
208go_repository(
209 name = "com_github_shirou_gopsutil",
210 commit = "2cbc9195c892b304060269ef280375236d2fcac9",
211 importpath = "github.com/shirou/gopsutil",
212)
Sergiusz Bazanskiacd001b2019-04-09 13:17:06 +0200213
214go_repository(
215 name = "com_github_cloudflare_cfssl",
216 commit = "768cd563887febaad559b511aaa5964823ccb4ab",
217 importpath = "github.com/cloudflare/cfssl",
218)
Sergiusz Bazanski258686c2019-05-01 12:26:43 +0200219
220go_repository(
221 name = "com_github_mattn_go_sqlite3",
222 commit = "5994cc52dfa89a4ee21ac891b06fbc1ea02c52d3",
223 importpath = "github.com/mattn/go-sqlite3",
224)
225
226go_repository(
227 name = "com_github_sebastiaanklippert_go_wkhtmltopdf",
228 commit = "72a7793efd38728796273861bb27d590cc33d9d4",
229 importpath = "github.com/sebastiaanklippert/go-wkhtmltopdf",
230)
Sergiusz Bazanski838cf652019-07-16 23:31:25 +0200231
232go_repository(
233 name = "com_github_ziutek_telnet",
234 commit = "c3b780dc415b28894076b4ec975ea3ea69e3980f",
235 importpath = "github.com/ziutek/telnet",
236)
237
238go_repository(
239 name = "com_github_ybbus_jsonrpc",
240 commit = "94088458a1e880219bd312fc0ccb8548993ebf80",
241 importpath = "github.com/ybbus/jsonrpc",
242)
243
244go_repository(
245 name = "com_github_digitalocean_go_netbox",
246 commit = "29433ec527e78486ea0a5758817ab672d977f90e",
247 importpath = "github.com/digitalocean/go-netbox",
248)
249
250go_repository(
251 name = "com_github_cenkalti_backoff",
252 commit = "4b4cebaf850ec58f1bb1fec5bdebdf8501c2bc3f",
253 importpath = "github.com/cenkalti/backoff",
254)
255
256go_repository(
257 name = "ml_vbom_util",
258 commit = "efcd4e0f97874370259c7d93e12aad57911dea81",
259 importpath = "vbom.ml/util",
260)
261
262go_repository(
263 name = "com_github_go_openapi_strfmt",
264 commit = "6faa644e1cdafc07f7b38eb06c1af5f92128f289",
265 importpath = "github.com/go-openapi/strfmt",
266)
267
268go_repository(
269 name = "com_github_go_openapi_swag",
270 commit = "de649ffb9e02183a414820c5b1b4582f7b009792",
271 importpath = "github.com/go-openapi/swag",
272)
273
274go_repository(
275 name = "com_github_go_openapi_errors",
276 commit = "9b273e805998abc751853b4e1574d66e5df888b4",
277 importpath = "github.com/go-openapi/errors",
278)
279
280go_repository(
281 name = "com_github_go_openapi_runtime",
282 commit = "58872d9a7ca5f28beff9effa19ac4c17d3e42cd3",
283 importpath = "github.com/go-openapi/runtime",
284)
285
286go_repository(
287 name = "com_github_go_openapi_validate",
288 commit = "6405b9095e4c96aabb45856da08a9323d50d9336",
289 importpath = "github.com/go-openapi/validate",
290)
291
292go_repository(
293 name = "com_github_mitchellh_mapstructure",
294 commit = "3536a929edddb9a5b34bd6861dc4a9647cb459fe",
295 importpath = "github.com/mitchellh/mapstructure",
296)
297
298go_repository(
299 name = "org_mongodb_go_mongo_driver",
300 commit = "9ec4480161a76f5267d56fc836b7f6d357fd9209",
301 importpath = "go.mongodb.org/mongo-driver",
302)
303
304go_repository(
305 name = "in_gopkg_yaml_v2",
306 commit = "51d6538a90f86fe93ac480b35f37b2be17fef232",
307 importpath = "gopkg.in/yaml.v2",
308)
309
310go_repository(
311 name = "com_github_asaskevich_govalidator",
312 commit = "f61b66f89f4a311bef65f13e575bcf1a2ffadda6",
313 importpath = "github.com/asaskevich/govalidator",
314)
315
316go_repository(
317 name = "com_github_go_openapi_spec",
318 commit = "bdfd7e07daecc404d77868a88b2364d0aed0ee5a",
319 importpath = "github.com/go-openapi/spec",
320)
321
322go_repository(
323 name = "com_github_mailru_easyjson",
324 commit = "b2ccc519800e761ac8000b95e5d57c80a897ff9e",
325 importpath = "github.com/mailru/easyjson",
326)
327
328go_repository(
329 name = "com_github_go_openapi_analysis",
330 commit = "48f4521ad6c3df9d6192efb04287c4a411e1f806",
331 importpath = "github.com/go-openapi/analysis",
332)
333
334go_repository(
335 name = "com_github_go_openapi_jsonpointer",
336 commit = "a105a905c5e6ad147f08504784917f3e178e0ba5",
337 importpath = "github.com/go-openapi/jsonpointer",
338)
339
340go_repository(
341 name = "com_github_go_openapi_loads",
342 commit = "8548893a17237be4a5b2f74773f23002f4179bbe",
343 importpath = "github.com/go-openapi/loads",
344)
345
346go_repository(
347 name = "com_github_go_openapi_jsonreference",
348 commit = "2903bfd4bfbaf188694f1edf731f2725a8fa344f",
349 importpath = "github.com/go-openapi/jsonreference",
350)
351
352go_repository(
353 name = "com_github_puerkitobio_purell",
354 commit = "44968752391892e1b0d0b821ee79e9a85fa13049",
355 importpath = "github.com/PuerkitoBio/purell",
356)
357
358go_repository(
359 name = "com_github_puerkitobio_urlesc",
360 commit = "de5bf2ad457846296e2031421a34e2568e304e35",
361 importpath = "github.com/PuerkitoBio/urlesc",
362)