Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 1 | load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 2 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 3 | |
Sergiusz Bazanski | 1e6b52a | 2019-05-15 19:08:25 +0200 | [diff] [blame] | 4 | # Nix rules |
| 5 | http_archive( |
| 6 | name = "io_tweag_rules_nixpkgs", |
| 7 | strip_prefix = "rules_nixpkgs-364adc70f32c2b3982995fce06b334f4d159070e", |
| 8 | urls = ["https://github.com/tweag/rules_nixpkgs/archive/364adc70f32c2b3982995fce06b334f4d159070e.tar.gz"], |
| 9 | ) |
| 10 | |
| 11 | # Nix packages |
| 12 | |
| 13 | load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_git_repository", "nixpkgs_package") |
Sergiusz Bazanski | c292410 | 2019-06-30 17:35:57 +0200 | [diff] [blame] | 14 | |
Sergiusz Bazanski | 1e6b52a | 2019-05-15 19:08:25 +0200 | [diff] [blame] | 15 | nixpkgs_git_repository( |
| 16 | name = "nixpkgs", |
| 17 | revision = "2f1f9a9fe8a3c22f0677733523eaf6bd33995d50", |
| 18 | ) |
| 19 | |
| 20 | nixpkgs_package( |
| 21 | name = "nixops", |
Sergiusz Bazanski | 44116ea | 2019-05-18 16:26:56 +0200 | [diff] [blame] | 22 | attribute_path = "nixops", |
Sergiusz Bazanski | c292410 | 2019-06-30 17:35:57 +0200 | [diff] [blame] | 23 | repositories = {"nixpkgs": "@nixpkgs"}, |
Sergiusz Bazanski | 1e6b52a | 2019-05-15 19:08:25 +0200 | [diff] [blame] | 24 | ) |
| 25 | |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 26 | # Python rules |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 27 | git_repository( |
| 28 | name = "io_bazel_rules_python", |
| 29 | remote = "https://github.com/bazelbuild/rules_python.git", |
| 30 | commit = "ebd7adcbcafcc8abe3fd8e5b0e42e10ced1bfe27", |
| 31 | ) |
| 32 | |
| 33 | # Python dependencies |
| 34 | |
| 35 | load("@io_bazel_rules_python//python:pip.bzl", "pip_import") |
| 36 | |
| 37 | pip_import( |
Sergiusz Bazanski | 0752971 | 2019-01-18 01:24:38 +0100 | [diff] [blame] | 38 | name = "py_deps", |
| 39 | requirements = "//:requirements.txt", |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 40 | ) |
| 41 | |
| 42 | load("@py_deps//:requirements.bzl", "pip_install") |
Sergiusz Bazanski | 0752971 | 2019-01-18 01:24:38 +0100 | [diff] [blame] | 43 | |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 44 | pip_install() |
| 45 | |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 46 | # Docker rules |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 47 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 48 | git_repository( |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 49 | name = "io_bazel_rules_docker", |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 50 | # Invoke puller.par with python2 |
| 51 | # TODO(q3k): use upstream when py2/py3 bazel madness if fully fixed |
| 52 | remote = "https://github.com/q3k/rules_docker", |
| 53 | commit = "4642a2a7775e5713596bd6e37758735a0f38aa6e", |
| 54 | ) |
Sergiusz Bazanski | c292410 | 2019-06-30 17:35:57 +0200 | [diff] [blame] | 55 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 56 | load( |
| 57 | "@io_bazel_rules_docker//repositories:repositories.bzl", |
| 58 | container_repositories = "repositories", |
| 59 | ) |
Sergiusz Bazanski | c292410 | 2019-06-30 17:35:57 +0200 | [diff] [blame] | 60 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 61 | container_repositories() |
| 62 | |
| 63 | # Docker base images |
| 64 | |
| 65 | load("@io_bazel_rules_docker//container:container.bzl", "container_pull") |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 66 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 67 | container_pull( |
| 68 | name = "prodimage-bionic", |
| 69 | registry = "index.docker.io", |
| 70 | repository = "library/ubuntu", |
| 71 | tag = "bionic-20190515", |
| 72 | digest = "sha256:b36667c98cf8f68d4b7f1fb8e01f742c2ed26b5f0c965a788e98dfe589a4b3e4", |
| 73 | ) |
| 74 | |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 75 | container_pull( |
| 76 | name = "gerrit-3.0.0", |
| 77 | registry = "index.docker.io", |
| 78 | repository = "gerritcodereview/gerrit", |
| 79 | tag = "3.0.0-ubuntu18", |
| 80 | digest = "sha256:f107729011d8b81611e35a0ad452f21a424c1820664e9f95d135ad411e87b9bb", |
| 81 | ) |
| 82 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 83 | # HTTP stuff from the Internet |
| 84 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") |
Sergiusz Bazanski | c292410 | 2019-06-30 17:35:57 +0200 | [diff] [blame] | 85 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 86 | http_file( |
Sergiusz Bazanski | 644f9ff | 2019-05-19 03:09:47 +0200 | [diff] [blame] | 87 | name = "factorio-headless-0.16.51", |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 88 | urls = ["https://factorio.com/get-download/0.16.51/headless/linux64"], |
Sergiusz Bazanski | 44116ea | 2019-05-18 16:26:56 +0200 | [diff] [blame] | 89 | sha256 = "6cb09f5ac87f16f8d5b43cef26c0ae26cc46a57a0382e253dfda032dc5bb367f", |
| 90 | downloaded_file_path = "factorio.tar.xz", |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 91 | ) |
Sergiusz Bazanski | c292410 | 2019-06-30 17:35:57 +0200 | [diff] [blame] | 92 | |
Sergiusz Bazanski | 644f9ff | 2019-05-19 03:09:47 +0200 | [diff] [blame] | 93 | http_file( |
| 94 | name = "factorio-headless-0.17.41", |
| 95 | urls = ["https://factorio.com/get-download/0.17.41/headless/linux64"], |
| 96 | sha256 = "bf2d16b23c3bbd97e41889d3e27670b6d958fa3d50f0befb41d234f735e8e6d1", |
| 97 | downloaded_file_path = "factorio.tar.xz", |
| 98 | ) |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 99 | |
Sergiusz Bazanski | c292410 | 2019-06-30 17:35:57 +0200 | [diff] [blame] | 100 | http_file( |
| 101 | name = "factorio-headless-0.17.52", |
| 102 | urls = ["https://factorio.com/get-download/0.17.52/headless/linux64"], |
| 103 | sha256 = "24458a4e16875b0b63677b7e7a068ce2e5b298c110381d17c6f596fd1406db0e", |
| 104 | downloaded_file_path = "factorio.tar.xz", |
| 105 | ) |
| 106 | |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 107 | # Go rules |
Sergiusz Bazanski | 0752971 | 2019-01-18 01:24:38 +0100 | [diff] [blame] | 108 | |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 109 | http_archive( |
| 110 | name = "io_bazel_rules_go", |
Sergiusz Bazanski | 1cace13 | 2019-07-13 16:16:34 +0200 | [diff] [blame] | 111 | urls = [ |
| 112 | "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz", |
| 113 | "https://github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz", |
| 114 | ], |
| 115 | sha256 = "45409e6c4f748baa9e05f8f6ab6efaa05739aa064e3ab94e5a1a09849c51806a", |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 116 | ) |
| 117 | |
Sergiusz Bazanski | 3a2a693 | 2019-04-06 01:20:19 +0200 | [diff] [blame] | 118 | load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains") |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 119 | |
| 120 | go_rules_dependencies() |
| 121 | |
| 122 | go_register_toolchains() |
| 123 | |
| 124 | # Go Gazelle rules |
| 125 | |
| 126 | http_archive( |
| 127 | name = "bazel_gazelle", |
Sergiusz Bazanski | 258686c | 2019-05-01 12:26:43 +0200 | [diff] [blame] | 128 | urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"], |
| 129 | sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687", |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 130 | ) |
| 131 | |
| 132 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") |
| 133 | |
| 134 | gazelle_dependencies() |
| 135 | |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 136 | # For app/gerrit/gerrit-oauth-provider |
| 137 | |
| 138 | git_repository( |
| 139 | name = "com_googlesource_gerrit_bazlets", |
| 140 | remote = "https://gerrit.googlesource.com/bazlets", |
| 141 | commit = "8528a0df69dadf6311d8d3f81c1b693afda8bcf1", |
| 142 | ) |
| 143 | |
| 144 | load( |
| 145 | "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", |
| 146 | "gerrit_api", |
| 147 | ) |
| 148 | |
| 149 | gerrit_api() |
| 150 | |
| 151 | load("@com_googlesource_gerrit_bazlets//tools:maven_jar.bzl", "maven_jar") |
| 152 | |
| 153 | maven_jar( |
| 154 | name = "scribe", |
| 155 | artifact = "org.scribe:scribe:1.3.7", |
| 156 | sha1 = "583921bed46635d9f529ef5f14f7c9e83367bc6e", |
| 157 | ) |
| 158 | |
| 159 | maven_jar( |
| 160 | name = "commons-codec", |
| 161 | artifact = "commons-codec:commons-codec:1.4", |
| 162 | sha1 = "4216af16d38465bbab0f3dff8efa14204f7a399a", |
| 163 | ) |
| 164 | |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 165 | # Go repositories |
| 166 | |
| 167 | go_repository( |
| 168 | name = "io_k8s_kubernetes", |
| 169 | importpath = "k8s.io/kubernetes", |
| 170 | # Get from HTTP instead, this repository is _big_ |
Sergiusz Bazanski | 4a024bb | 2019-05-17 18:10:02 +0200 | [diff] [blame] | 171 | urls = ["https://github.com/kubernetes/kubernetes/archive/v1.14.2.tar.gz"], |
| 172 | sha256 = "1effa926aedb0ed51eadcef3d5d49fd9799ec4d018200f95f51fcaa2a2d2cbf4", |
| 173 | strip_prefix = "kubernetes-1.14.2", |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 174 | ) |
| 175 | |
| 176 | go_repository( |
Sergiusz Bazanski | 4a024bb | 2019-05-17 18:10:02 +0200 | [diff] [blame] | 177 | name = "io_k8s_repo_infra", |
| 178 | commit = "df02ded38f9506e5bbcbf21702034b4fef815f2f", |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 179 | importpath = "k8s.io/repo-infra", |
| 180 | ) |
| 181 | |
| 182 | go_repository( |
| 183 | name = "com_github_ksonnet_kubecfg", |
| 184 | commit = "59bc7dedf70e7496a2837207d8723f98f0e5f8e8", |
| 185 | importpath = "github.com/ksonnet/kubecfg", |
| 186 | ) |
Sergiusz Bazanski | 0752971 | 2019-01-18 01:24:38 +0100 | [diff] [blame] | 187 | |
| 188 | go_repository( |
| 189 | name = "com_github_projectcalico_calicoctl", |
| 190 | importpath = "github.com/projectcalico/calicoctl", |
| 191 | # This fork implements explicit Bazel rules |
| 192 | remote = "https://github.com/q3k/calicoctl", |
| 193 | vcs = "git", |
| 194 | commit = "1bc31862f07e7539ca493de9137ed1ad56cc9f43", |
| 195 | build_file_generation = "off", |
| 196 | ) |
Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 197 | |
| 198 | go_repository( |
| 199 | name = "com_github_shirou_gopsutil", |
| 200 | commit = "2cbc9195c892b304060269ef280375236d2fcac9", |
| 201 | importpath = "github.com/shirou/gopsutil", |
| 202 | ) |
Sergiusz Bazanski | acd001b | 2019-04-09 13:17:06 +0200 | [diff] [blame] | 203 | |
| 204 | go_repository( |
| 205 | name = "com_github_cloudflare_cfssl", |
| 206 | commit = "768cd563887febaad559b511aaa5964823ccb4ab", |
| 207 | importpath = "github.com/cloudflare/cfssl", |
| 208 | ) |
Sergiusz Bazanski | 258686c | 2019-05-01 12:26:43 +0200 | [diff] [blame] | 209 | |
| 210 | go_repository( |
| 211 | name = "com_github_mattn_go_sqlite3", |
| 212 | commit = "5994cc52dfa89a4ee21ac891b06fbc1ea02c52d3", |
| 213 | importpath = "github.com/mattn/go-sqlite3", |
| 214 | ) |
| 215 | |
| 216 | go_repository( |
| 217 | name = "com_github_sebastiaanklippert_go_wkhtmltopdf", |
| 218 | commit = "72a7793efd38728796273861bb27d590cc33d9d4", |
| 219 | importpath = "github.com/sebastiaanklippert/go-wkhtmltopdf", |
| 220 | ) |
Sergiusz Bazanski | 838cf65 | 2019-07-16 23:31:25 +0200 | [diff] [blame^] | 221 | |
| 222 | go_repository( |
| 223 | name = "com_github_ziutek_telnet", |
| 224 | commit = "c3b780dc415b28894076b4ec975ea3ea69e3980f", |
| 225 | importpath = "github.com/ziutek/telnet", |
| 226 | ) |
| 227 | |
| 228 | go_repository( |
| 229 | name = "com_github_ybbus_jsonrpc", |
| 230 | commit = "94088458a1e880219bd312fc0ccb8548993ebf80", |
| 231 | importpath = "github.com/ybbus/jsonrpc", |
| 232 | ) |
| 233 | |
| 234 | go_repository( |
| 235 | name = "com_github_digitalocean_go_netbox", |
| 236 | commit = "29433ec527e78486ea0a5758817ab672d977f90e", |
| 237 | importpath = "github.com/digitalocean/go-netbox", |
| 238 | ) |
| 239 | |
| 240 | go_repository( |
| 241 | name = "com_github_cenkalti_backoff", |
| 242 | commit = "4b4cebaf850ec58f1bb1fec5bdebdf8501c2bc3f", |
| 243 | importpath = "github.com/cenkalti/backoff", |
| 244 | ) |
| 245 | |
| 246 | go_repository( |
| 247 | name = "ml_vbom_util", |
| 248 | commit = "efcd4e0f97874370259c7d93e12aad57911dea81", |
| 249 | importpath = "vbom.ml/util", |
| 250 | ) |
| 251 | |
| 252 | go_repository( |
| 253 | name = "com_github_go_openapi_strfmt", |
| 254 | commit = "6faa644e1cdafc07f7b38eb06c1af5f92128f289", |
| 255 | importpath = "github.com/go-openapi/strfmt", |
| 256 | ) |
| 257 | |
| 258 | go_repository( |
| 259 | name = "com_github_go_openapi_swag", |
| 260 | commit = "de649ffb9e02183a414820c5b1b4582f7b009792", |
| 261 | importpath = "github.com/go-openapi/swag", |
| 262 | ) |
| 263 | |
| 264 | go_repository( |
| 265 | name = "com_github_go_openapi_errors", |
| 266 | commit = "9b273e805998abc751853b4e1574d66e5df888b4", |
| 267 | importpath = "github.com/go-openapi/errors", |
| 268 | ) |
| 269 | |
| 270 | go_repository( |
| 271 | name = "com_github_go_openapi_runtime", |
| 272 | commit = "58872d9a7ca5f28beff9effa19ac4c17d3e42cd3", |
| 273 | importpath = "github.com/go-openapi/runtime", |
| 274 | ) |
| 275 | |
| 276 | go_repository( |
| 277 | name = "com_github_go_openapi_validate", |
| 278 | commit = "6405b9095e4c96aabb45856da08a9323d50d9336", |
| 279 | importpath = "github.com/go-openapi/validate", |
| 280 | ) |
| 281 | |
| 282 | go_repository( |
| 283 | name = "com_github_mitchellh_mapstructure", |
| 284 | commit = "3536a929edddb9a5b34bd6861dc4a9647cb459fe", |
| 285 | importpath = "github.com/mitchellh/mapstructure", |
| 286 | ) |
| 287 | |
| 288 | go_repository( |
| 289 | name = "org_mongodb_go_mongo_driver", |
| 290 | commit = "9ec4480161a76f5267d56fc836b7f6d357fd9209", |
| 291 | importpath = "go.mongodb.org/mongo-driver", |
| 292 | ) |
| 293 | |
| 294 | go_repository( |
| 295 | name = "in_gopkg_yaml_v2", |
| 296 | commit = "51d6538a90f86fe93ac480b35f37b2be17fef232", |
| 297 | importpath = "gopkg.in/yaml.v2", |
| 298 | ) |
| 299 | |
| 300 | go_repository( |
| 301 | name = "com_github_asaskevich_govalidator", |
| 302 | commit = "f61b66f89f4a311bef65f13e575bcf1a2ffadda6", |
| 303 | importpath = "github.com/asaskevich/govalidator", |
| 304 | ) |
| 305 | |
| 306 | go_repository( |
| 307 | name = "com_github_go_openapi_spec", |
| 308 | commit = "bdfd7e07daecc404d77868a88b2364d0aed0ee5a", |
| 309 | importpath = "github.com/go-openapi/spec", |
| 310 | ) |
| 311 | |
| 312 | go_repository( |
| 313 | name = "com_github_mailru_easyjson", |
| 314 | commit = "b2ccc519800e761ac8000b95e5d57c80a897ff9e", |
| 315 | importpath = "github.com/mailru/easyjson", |
| 316 | ) |
| 317 | |
| 318 | go_repository( |
| 319 | name = "com_github_go_openapi_analysis", |
| 320 | commit = "48f4521ad6c3df9d6192efb04287c4a411e1f806", |
| 321 | importpath = "github.com/go-openapi/analysis", |
| 322 | ) |
| 323 | |
| 324 | go_repository( |
| 325 | name = "com_github_go_openapi_jsonpointer", |
| 326 | commit = "a105a905c5e6ad147f08504784917f3e178e0ba5", |
| 327 | importpath = "github.com/go-openapi/jsonpointer", |
| 328 | ) |
| 329 | |
| 330 | go_repository( |
| 331 | name = "com_github_go_openapi_loads", |
| 332 | commit = "8548893a17237be4a5b2f74773f23002f4179bbe", |
| 333 | importpath = "github.com/go-openapi/loads", |
| 334 | ) |
| 335 | |
| 336 | go_repository( |
| 337 | name = "com_github_go_openapi_jsonreference", |
| 338 | commit = "2903bfd4bfbaf188694f1edf731f2725a8fa344f", |
| 339 | importpath = "github.com/go-openapi/jsonreference", |
| 340 | ) |
| 341 | |
| 342 | go_repository( |
| 343 | name = "com_github_puerkitobio_purell", |
| 344 | commit = "44968752391892e1b0d0b821ee79e9a85fa13049", |
| 345 | importpath = "github.com/PuerkitoBio/purell", |
| 346 | ) |
| 347 | |
| 348 | go_repository( |
| 349 | name = "com_github_puerkitobio_urlesc", |
| 350 | commit = "de5bf2ad457846296e2031421a34e2568e304e35", |
| 351 | importpath = "github.com/PuerkitoBio/urlesc", |
| 352 | ) |