Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 1 | |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 2 | load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 3 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 4 | |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 5 | # Skylib |
| 6 | |
| 7 | skylib_version = "0.8.0" |
| 8 | http_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 | |
| 17 | http_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 | |
| 24 | load( |
| 25 | "@io_bazel_rules_docker//repositories:repositories.bzl", |
| 26 | container_repositories = "repositories", |
| 27 | ) |
| 28 | |
| 29 | container_repositories() |
Sergiusz Bazanski | 1e6b52a | 2019-05-15 19:08:25 +0200 | [diff] [blame] | 30 | # Nix rules |
| 31 | http_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 | |
| 39 | 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] | 40 | |
Sergiusz Bazanski | 1e6b52a | 2019-05-15 19:08:25 +0200 | [diff] [blame] | 41 | nixpkgs_git_repository( |
| 42 | name = "nixpkgs", |
| 43 | revision = "2f1f9a9fe8a3c22f0677733523eaf6bd33995d50", |
| 44 | ) |
| 45 | |
| 46 | nixpkgs_package( |
| 47 | name = "nixops", |
Sergiusz Bazanski | 44116ea | 2019-05-18 16:26:56 +0200 | [diff] [blame] | 48 | attribute_path = "nixops", |
Sergiusz Bazanski | c292410 | 2019-06-30 17:35:57 +0200 | [diff] [blame] | 49 | repositories = {"nixpkgs": "@nixpkgs"}, |
Sergiusz Bazanski | 1e6b52a | 2019-05-15 19:08:25 +0200 | [diff] [blame] | 50 | ) |
| 51 | |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 52 | # Python rules |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 53 | |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 54 | git_repository( |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 55 | name = "com_apt_itude_rules_pip", |
Sergiusz Bazanski | d5ac5d1 | 2019-07-19 20:53:21 +0200 | [diff] [blame] | 56 | commit = "ce667087818553cdc4b1a2258fc53df917c4f87c", |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 57 | remote = "https://github.com/apt-itude/rules_pip.git", |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 58 | ) |
| 59 | |
| 60 | # Python dependencies |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 61 | load("@com_apt_itude_rules_pip//rules:dependencies.bzl", "pip_rules_dependencies") |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 62 | |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 63 | pip_rules_dependencies() |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 64 | |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 65 | load("@com_apt_itude_rules_pip//rules:repository.bzl", "pip_repository") |
| 66 | |
| 67 | pip_repository( |
| 68 | name = "pip36", |
| 69 | python_interpreter = "python3.6", |
| 70 | requirements = "//pip:requirements-linux.txt", |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 71 | ) |
| 72 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 73 | # Docker base images |
| 74 | |
| 75 | load("@io_bazel_rules_docker//container:container.bzl", "container_pull") |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 76 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 77 | container_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 Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 85 | container_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 Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 93 | # HTTP stuff from the Internet |
| 94 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") |
Sergiusz Bazanski | c292410 | 2019-06-30 17:35:57 +0200 | [diff] [blame] | 95 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 96 | http_file( |
Sergiusz Bazanski | 644f9ff | 2019-05-19 03:09:47 +0200 | [diff] [blame] | 97 | name = "factorio-headless-0.16.51", |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 98 | urls = ["https://factorio.com/get-download/0.16.51/headless/linux64"], |
Sergiusz Bazanski | 44116ea | 2019-05-18 16:26:56 +0200 | [diff] [blame] | 99 | sha256 = "6cb09f5ac87f16f8d5b43cef26c0ae26cc46a57a0382e253dfda032dc5bb367f", |
| 100 | downloaded_file_path = "factorio.tar.xz", |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 101 | ) |
Sergiusz Bazanski | c292410 | 2019-06-30 17:35:57 +0200 | [diff] [blame] | 102 | |
Sergiusz Bazanski | 644f9ff | 2019-05-19 03:09:47 +0200 | [diff] [blame] | 103 | http_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 Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 109 | |
Sergiusz Bazanski | c292410 | 2019-06-30 17:35:57 +0200 | [diff] [blame] | 110 | http_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 Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 117 | # Go rules |
Sergiusz Bazanski | 0752971 | 2019-01-18 01:24:38 +0100 | [diff] [blame] | 118 | |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 119 | http_archive( |
| 120 | name = "io_bazel_rules_go", |
Sergiusz Bazanski | 1cace13 | 2019-07-13 16:16:34 +0200 | [diff] [blame] | 121 | 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 Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 126 | ) |
| 127 | |
Sergiusz Bazanski | 3a2a693 | 2019-04-06 01:20:19 +0200 | [diff] [blame] | 128 | 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] | 129 | |
| 130 | go_rules_dependencies() |
| 131 | |
| 132 | go_register_toolchains() |
| 133 | |
| 134 | # Go Gazelle rules |
| 135 | |
| 136 | http_archive( |
| 137 | name = "bazel_gazelle", |
Sergiusz Bazanski | 258686c | 2019-05-01 12:26:43 +0200 | [diff] [blame] | 138 | urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"], |
| 139 | sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687", |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 140 | ) |
| 141 | |
| 142 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") |
| 143 | |
| 144 | gazelle_dependencies() |
| 145 | |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 146 | # For app/gerrit/gerrit-oauth-provider |
| 147 | |
| 148 | git_repository( |
| 149 | name = "com_googlesource_gerrit_bazlets", |
| 150 | remote = "https://gerrit.googlesource.com/bazlets", |
| 151 | commit = "8528a0df69dadf6311d8d3f81c1b693afda8bcf1", |
| 152 | ) |
| 153 | |
| 154 | load( |
| 155 | "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", |
| 156 | "gerrit_api", |
| 157 | ) |
| 158 | |
| 159 | gerrit_api() |
| 160 | |
| 161 | load("@com_googlesource_gerrit_bazlets//tools:maven_jar.bzl", "maven_jar") |
| 162 | |
| 163 | maven_jar( |
| 164 | name = "scribe", |
| 165 | artifact = "org.scribe:scribe:1.3.7", |
| 166 | sha1 = "583921bed46635d9f529ef5f14f7c9e83367bc6e", |
| 167 | ) |
| 168 | |
| 169 | maven_jar( |
| 170 | name = "commons-codec", |
| 171 | artifact = "commons-codec:commons-codec:1.4", |
| 172 | sha1 = "4216af16d38465bbab0f3dff8efa14204f7a399a", |
| 173 | ) |
| 174 | |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 175 | # Go repositories |
| 176 | |
| 177 | go_repository( |
| 178 | name = "io_k8s_kubernetes", |
| 179 | importpath = "k8s.io/kubernetes", |
| 180 | # Get from HTTP instead, this repository is _big_ |
Sergiusz Bazanski | 4a024bb | 2019-05-17 18:10:02 +0200 | [diff] [blame] | 181 | urls = ["https://github.com/kubernetes/kubernetes/archive/v1.14.2.tar.gz"], |
| 182 | sha256 = "1effa926aedb0ed51eadcef3d5d49fd9799ec4d018200f95f51fcaa2a2d2cbf4", |
| 183 | strip_prefix = "kubernetes-1.14.2", |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 184 | ) |
| 185 | |
| 186 | go_repository( |
Sergiusz Bazanski | 4a024bb | 2019-05-17 18:10:02 +0200 | [diff] [blame] | 187 | name = "io_k8s_repo_infra", |
| 188 | commit = "df02ded38f9506e5bbcbf21702034b4fef815f2f", |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 189 | importpath = "k8s.io/repo-infra", |
| 190 | ) |
| 191 | |
| 192 | go_repository( |
| 193 | name = "com_github_ksonnet_kubecfg", |
| 194 | commit = "59bc7dedf70e7496a2837207d8723f98f0e5f8e8", |
| 195 | importpath = "github.com/ksonnet/kubecfg", |
| 196 | ) |
Sergiusz Bazanski | 0752971 | 2019-01-18 01:24:38 +0100 | [diff] [blame] | 197 | |
| 198 | go_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 Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 207 | |
| 208 | go_repository( |
| 209 | name = "com_github_shirou_gopsutil", |
| 210 | commit = "2cbc9195c892b304060269ef280375236d2fcac9", |
| 211 | importpath = "github.com/shirou/gopsutil", |
| 212 | ) |
Sergiusz Bazanski | acd001b | 2019-04-09 13:17:06 +0200 | [diff] [blame] | 213 | |
| 214 | go_repository( |
| 215 | name = "com_github_cloudflare_cfssl", |
| 216 | commit = "768cd563887febaad559b511aaa5964823ccb4ab", |
| 217 | importpath = "github.com/cloudflare/cfssl", |
| 218 | ) |
Sergiusz Bazanski | 258686c | 2019-05-01 12:26:43 +0200 | [diff] [blame] | 219 | |
| 220 | go_repository( |
| 221 | name = "com_github_mattn_go_sqlite3", |
| 222 | commit = "5994cc52dfa89a4ee21ac891b06fbc1ea02c52d3", |
| 223 | importpath = "github.com/mattn/go-sqlite3", |
| 224 | ) |
| 225 | |
| 226 | go_repository( |
| 227 | name = "com_github_sebastiaanklippert_go_wkhtmltopdf", |
| 228 | commit = "72a7793efd38728796273861bb27d590cc33d9d4", |
| 229 | importpath = "github.com/sebastiaanklippert/go-wkhtmltopdf", |
| 230 | ) |
Sergiusz Bazanski | 838cf65 | 2019-07-16 23:31:25 +0200 | [diff] [blame] | 231 | |
| 232 | go_repository( |
| 233 | name = "com_github_ziutek_telnet", |
| 234 | commit = "c3b780dc415b28894076b4ec975ea3ea69e3980f", |
| 235 | importpath = "github.com/ziutek/telnet", |
| 236 | ) |
| 237 | |
| 238 | go_repository( |
| 239 | name = "com_github_ybbus_jsonrpc", |
| 240 | commit = "94088458a1e880219bd312fc0ccb8548993ebf80", |
| 241 | importpath = "github.com/ybbus/jsonrpc", |
| 242 | ) |
| 243 | |
| 244 | go_repository( |
| 245 | name = "com_github_digitalocean_go_netbox", |
| 246 | commit = "29433ec527e78486ea0a5758817ab672d977f90e", |
| 247 | importpath = "github.com/digitalocean/go-netbox", |
| 248 | ) |
| 249 | |
| 250 | go_repository( |
| 251 | name = "com_github_cenkalti_backoff", |
| 252 | commit = "4b4cebaf850ec58f1bb1fec5bdebdf8501c2bc3f", |
| 253 | importpath = "github.com/cenkalti/backoff", |
| 254 | ) |
| 255 | |
| 256 | go_repository( |
| 257 | name = "ml_vbom_util", |
| 258 | commit = "efcd4e0f97874370259c7d93e12aad57911dea81", |
| 259 | importpath = "vbom.ml/util", |
| 260 | ) |
| 261 | |
| 262 | go_repository( |
| 263 | name = "com_github_go_openapi_strfmt", |
| 264 | commit = "6faa644e1cdafc07f7b38eb06c1af5f92128f289", |
| 265 | importpath = "github.com/go-openapi/strfmt", |
| 266 | ) |
| 267 | |
| 268 | go_repository( |
| 269 | name = "com_github_go_openapi_swag", |
| 270 | commit = "de649ffb9e02183a414820c5b1b4582f7b009792", |
| 271 | importpath = "github.com/go-openapi/swag", |
| 272 | ) |
| 273 | |
| 274 | go_repository( |
| 275 | name = "com_github_go_openapi_errors", |
| 276 | commit = "9b273e805998abc751853b4e1574d66e5df888b4", |
| 277 | importpath = "github.com/go-openapi/errors", |
| 278 | ) |
| 279 | |
| 280 | go_repository( |
| 281 | name = "com_github_go_openapi_runtime", |
| 282 | commit = "58872d9a7ca5f28beff9effa19ac4c17d3e42cd3", |
| 283 | importpath = "github.com/go-openapi/runtime", |
| 284 | ) |
| 285 | |
| 286 | go_repository( |
| 287 | name = "com_github_go_openapi_validate", |
| 288 | commit = "6405b9095e4c96aabb45856da08a9323d50d9336", |
| 289 | importpath = "github.com/go-openapi/validate", |
| 290 | ) |
| 291 | |
| 292 | go_repository( |
| 293 | name = "com_github_mitchellh_mapstructure", |
| 294 | commit = "3536a929edddb9a5b34bd6861dc4a9647cb459fe", |
| 295 | importpath = "github.com/mitchellh/mapstructure", |
| 296 | ) |
| 297 | |
| 298 | go_repository( |
| 299 | name = "org_mongodb_go_mongo_driver", |
| 300 | commit = "9ec4480161a76f5267d56fc836b7f6d357fd9209", |
| 301 | importpath = "go.mongodb.org/mongo-driver", |
| 302 | ) |
| 303 | |
| 304 | go_repository( |
| 305 | name = "in_gopkg_yaml_v2", |
| 306 | commit = "51d6538a90f86fe93ac480b35f37b2be17fef232", |
| 307 | importpath = "gopkg.in/yaml.v2", |
| 308 | ) |
| 309 | |
| 310 | go_repository( |
| 311 | name = "com_github_asaskevich_govalidator", |
| 312 | commit = "f61b66f89f4a311bef65f13e575bcf1a2ffadda6", |
| 313 | importpath = "github.com/asaskevich/govalidator", |
| 314 | ) |
| 315 | |
| 316 | go_repository( |
| 317 | name = "com_github_go_openapi_spec", |
| 318 | commit = "bdfd7e07daecc404d77868a88b2364d0aed0ee5a", |
| 319 | importpath = "github.com/go-openapi/spec", |
| 320 | ) |
| 321 | |
| 322 | go_repository( |
| 323 | name = "com_github_mailru_easyjson", |
| 324 | commit = "b2ccc519800e761ac8000b95e5d57c80a897ff9e", |
| 325 | importpath = "github.com/mailru/easyjson", |
| 326 | ) |
| 327 | |
| 328 | go_repository( |
| 329 | name = "com_github_go_openapi_analysis", |
| 330 | commit = "48f4521ad6c3df9d6192efb04287c4a411e1f806", |
| 331 | importpath = "github.com/go-openapi/analysis", |
| 332 | ) |
| 333 | |
| 334 | go_repository( |
| 335 | name = "com_github_go_openapi_jsonpointer", |
| 336 | commit = "a105a905c5e6ad147f08504784917f3e178e0ba5", |
| 337 | importpath = "github.com/go-openapi/jsonpointer", |
| 338 | ) |
| 339 | |
| 340 | go_repository( |
| 341 | name = "com_github_go_openapi_loads", |
| 342 | commit = "8548893a17237be4a5b2f74773f23002f4179bbe", |
| 343 | importpath = "github.com/go-openapi/loads", |
| 344 | ) |
| 345 | |
| 346 | go_repository( |
| 347 | name = "com_github_go_openapi_jsonreference", |
| 348 | commit = "2903bfd4bfbaf188694f1edf731f2725a8fa344f", |
| 349 | importpath = "github.com/go-openapi/jsonreference", |
| 350 | ) |
| 351 | |
| 352 | go_repository( |
| 353 | name = "com_github_puerkitobio_purell", |
| 354 | commit = "44968752391892e1b0d0b821ee79e9a85fa13049", |
| 355 | importpath = "github.com/PuerkitoBio/purell", |
| 356 | ) |
| 357 | |
| 358 | go_repository( |
| 359 | name = "com_github_puerkitobio_urlesc", |
| 360 | commit = "de5bf2ad457846296e2031421a34e2568e304e35", |
| 361 | importpath = "github.com/PuerkitoBio/urlesc", |
| 362 | ) |