blob: 439ac1f394ecbe27b6e7cb4de021e8281e60e840 [file] [log] [blame]
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Skylib
skylib_version = "0.8.0"
http_archive(
name = "bazel_skylib",
type = "tar.gz",
url = "https://github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel-skylib.{}.tar.gz".format(skylib_version, skylib_version),
sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e",
)
# Docker rules
http_archive(
name = "io_bazel_rules_docker",
sha256 = "87fc6a2b128147a0a3039a2fd0b53cc1f2ed5adb8716f50756544a572999ae9a",
strip_prefix = "rules_docker-0.8.1",
urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.8.1.tar.gz"],
)
load("@io_bazel_rules_docker//toolchains/docker:toolchain.bzl", docker_toolchain_configure = "toolchain_configure")
# This forces the use of Docker $HOME/.docker configuration.
docker_toolchain_configure(
name = "docker_config",
client_config = "",
)
load(
"@io_bazel_rules_docker//repositories:repositories.bzl",
container_repositories = "repositories",
)
container_repositories()
# Nix rules
http_archive(
name = "io_tweag_rules_nixpkgs",
strip_prefix = "rules_nixpkgs-364adc70f32c2b3982995fce06b334f4d159070e",
urls = ["https://github.com/tweag/rules_nixpkgs/archive/364adc70f32c2b3982995fce06b334f4d159070e.tar.gz"],
)
# Nix packages
load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_git_repository", "nixpkgs_package")
nixpkgs_git_repository(
name = "nixpkgs",
revision = "2f1f9a9fe8a3c22f0677733523eaf6bd33995d50",
)
nixpkgs_package(
name = "nixops",
attribute_path = "nixops",
repositories = {"nixpkgs": "@nixpkgs"},
)
# Python rules
git_repository(
name = "com_apt_itude_rules_pip",
commit = "ce667087818553cdc4b1a2258fc53df917c4f87c",
remote = "https://github.com/apt-itude/rules_pip.git",
)
# Python dependencies
load("@com_apt_itude_rules_pip//rules:dependencies.bzl", "pip_rules_dependencies")
pip_rules_dependencies()
load("@com_apt_itude_rules_pip//rules:repository.bzl", "pip_repository")
pip_repository(
name = "pip36",
python_interpreter = "python3.6",
requirements = "//pip:requirements-linux.txt",
)
# Docker base images
load("@io_bazel_rules_docker//container:container.bzl", "container_pull")
container_pull(
name = "prodimage-bionic",
registry = "index.docker.io",
repository = "library/ubuntu",
tag = "bionic-20190515",
digest = "sha256:b36667c98cf8f68d4b7f1fb8e01f742c2ed26b5f0c965a788e98dfe589a4b3e4",
)
container_pull(
name = "gerrit-3.0.0",
registry = "index.docker.io",
repository = "gerritcodereview/gerrit",
tag = "3.0.0-ubuntu18",
digest = "sha256:f107729011d8b81611e35a0ad452f21a424c1820664e9f95d135ad411e87b9bb",
)
# HTTP stuff from the Internet
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
http_file(
name = "factorio-headless-0.16.51",
urls = ["https://factorio.com/get-download/0.16.51/headless/linux64"],
sha256 = "6cb09f5ac87f16f8d5b43cef26c0ae26cc46a57a0382e253dfda032dc5bb367f",
downloaded_file_path = "factorio.tar.xz",
)
http_file(
name = "factorio-headless-0.17.41",
urls = ["https://factorio.com/get-download/0.17.41/headless/linux64"],
sha256 = "bf2d16b23c3bbd97e41889d3e27670b6d958fa3d50f0befb41d234f735e8e6d1",
downloaded_file_path = "factorio.tar.xz",
)
http_file(
name = "factorio-headless-0.17.52",
urls = ["https://factorio.com/get-download/0.17.52/headless/linux64"],
sha256 = "24458a4e16875b0b63677b7e7a068ce2e5b298c110381d17c6f596fd1406db0e",
downloaded_file_path = "factorio.tar.xz",
)
# Go rules
http_archive(
name = "io_bazel_rules_go",
urls = [
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz",
],
sha256 = "45409e6c4f748baa9e05f8f6ab6efaa05739aa064e3ab94e5a1a09849c51806a",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
# Go Gazelle rules
http_archive(
name = "bazel_gazelle",
urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.17.0/bazel-gazelle-0.17.0.tar.gz"],
sha256 = "3c681998538231a2d24d0c07ed5a7658cb72bfb5fd4bf9911157c0e9ac6a2687",
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
gazelle_dependencies()
# For devtools/gerrit/gerrit-oauth-provider
git_repository(
name = "com_googlesource_gerrit_bazlets",
remote = "https://gerrit.googlesource.com/bazlets",
commit = "8528a0df69dadf6311d8d3f81c1b693afda8bcf1",
)
load(
"@com_googlesource_gerrit_bazlets//:gerrit_api.bzl",
"gerrit_api",
)
gerrit_api()
load("@com_googlesource_gerrit_bazlets//tools:maven_jar.bzl", "maven_jar")
maven_jar(
name = "scribe",
artifact = "org.scribe:scribe:1.3.7",
sha1 = "583921bed46635d9f529ef5f14f7c9e83367bc6e",
)
maven_jar(
name = "commons-codec",
artifact = "commons-codec:commons-codec:1.4",
sha1 = "4216af16d38465bbab0f3dff8efa14204f7a399a",
)
# For devtools/bazel-cache
git_repository(
name = "com_github_buchgr_bazel_remote",
remote = "https://github.com/buchgr/bazel-remote.git",
commit = "a9374e638411da72a2ef2a83f490e61e2d74a976",
)
# Go image repos for Docker
load(
"@io_bazel_rules_docker//go:image.bzl",
go_image_repositories = "repositories",
)
go_image_repositories()
# Go repositories
go_repository(
name = "io_k8s_kubernetes",
importpath = "k8s.io/kubernetes",
# Get from HTTP instead, this repository is _big_
urls = ["https://github.com/kubernetes/kubernetes/archive/v1.14.2.tar.gz"],
sha256 = "1effa926aedb0ed51eadcef3d5d49fd9799ec4d018200f95f51fcaa2a2d2cbf4",
strip_prefix = "kubernetes-1.14.2",
)
go_repository(
name = "io_k8s_repo_infra",
commit = "df02ded38f9506e5bbcbf21702034b4fef815f2f",
importpath = "k8s.io/repo-infra",
)
go_repository(
name = "com_github_ksonnet_kubecfg",
commit = "59bc7dedf70e7496a2837207d8723f98f0e5f8e8",
importpath = "github.com/ksonnet/kubecfg",
)
go_repository(
name = "com_github_projectcalico_calicoctl",
importpath = "github.com/projectcalico/calicoctl",
# This fork implements explicit Bazel rules
remote = "https://github.com/q3k/calicoctl",
vcs = "git",
commit = "1bc31862f07e7539ca493de9137ed1ad56cc9f43",
build_file_generation = "off",
)
go_repository(
name = "com_github_shirou_gopsutil",
commit = "2cbc9195c892b304060269ef280375236d2fcac9",
importpath = "github.com/shirou/gopsutil",
)
go_repository(
name = "com_github_cloudflare_cfssl",
commit = "768cd563887febaad559b511aaa5964823ccb4ab",
importpath = "github.com/cloudflare/cfssl",
)
go_repository(
name = "com_github_mattn_go_sqlite3",
commit = "5994cc52dfa89a4ee21ac891b06fbc1ea02c52d3",
importpath = "github.com/mattn/go-sqlite3",
)
go_repository(
name = "com_github_sebastiaanklippert_go_wkhtmltopdf",
commit = "72a7793efd38728796273861bb27d590cc33d9d4",
importpath = "github.com/sebastiaanklippert/go-wkhtmltopdf",
)
go_repository(
name = "com_github_ziutek_telnet",
commit = "c3b780dc415b28894076b4ec975ea3ea69e3980f",
importpath = "github.com/ziutek/telnet",
)
go_repository(
name = "com_github_ybbus_jsonrpc",
commit = "94088458a1e880219bd312fc0ccb8548993ebf80",
importpath = "github.com/ybbus/jsonrpc",
)
go_repository(
name = "com_github_digitalocean_go_netbox",
commit = "29433ec527e78486ea0a5758817ab672d977f90e",
importpath = "github.com/digitalocean/go-netbox",
)
go_repository(
name = "com_github_cenkalti_backoff",
commit = "4b4cebaf850ec58f1bb1fec5bdebdf8501c2bc3f",
importpath = "github.com/cenkalti/backoff",
)
go_repository(
name = "ml_vbom_util",
commit = "efcd4e0f97874370259c7d93e12aad57911dea81",
importpath = "vbom.ml/util",
)
go_repository(
name = "com_github_go_openapi_strfmt",
commit = "6faa644e1cdafc07f7b38eb06c1af5f92128f289",
importpath = "github.com/go-openapi/strfmt",
)
go_repository(
name = "com_github_go_openapi_swag",
commit = "de649ffb9e02183a414820c5b1b4582f7b009792",
importpath = "github.com/go-openapi/swag",
)
go_repository(
name = "com_github_go_openapi_errors",
commit = "9b273e805998abc751853b4e1574d66e5df888b4",
importpath = "github.com/go-openapi/errors",
)
go_repository(
name = "com_github_go_openapi_runtime",
commit = "58872d9a7ca5f28beff9effa19ac4c17d3e42cd3",
importpath = "github.com/go-openapi/runtime",
)
go_repository(
name = "com_github_go_openapi_validate",
commit = "6405b9095e4c96aabb45856da08a9323d50d9336",
importpath = "github.com/go-openapi/validate",
)
go_repository(
name = "com_github_mitchellh_mapstructure",
commit = "3536a929edddb9a5b34bd6861dc4a9647cb459fe",
importpath = "github.com/mitchellh/mapstructure",
)
go_repository(
name = "org_mongodb_go_mongo_driver",
commit = "9ec4480161a76f5267d56fc836b7f6d357fd9209",
importpath = "go.mongodb.org/mongo-driver",
)
go_repository(
name = "in_gopkg_yaml_v2",
commit = "51d6538a90f86fe93ac480b35f37b2be17fef232",
importpath = "gopkg.in/yaml.v2",
)
go_repository(
name = "com_github_asaskevich_govalidator",
commit = "f61b66f89f4a311bef65f13e575bcf1a2ffadda6",
importpath = "github.com/asaskevich/govalidator",
)
go_repository(
name = "com_github_go_openapi_spec",
commit = "bdfd7e07daecc404d77868a88b2364d0aed0ee5a",
importpath = "github.com/go-openapi/spec",
)
go_repository(
name = "com_github_mailru_easyjson",
commit = "b2ccc519800e761ac8000b95e5d57c80a897ff9e",
importpath = "github.com/mailru/easyjson",
)
go_repository(
name = "com_github_go_openapi_analysis",
commit = "48f4521ad6c3df9d6192efb04287c4a411e1f806",
importpath = "github.com/go-openapi/analysis",
)
go_repository(
name = "com_github_go_openapi_jsonpointer",
commit = "a105a905c5e6ad147f08504784917f3e178e0ba5",
importpath = "github.com/go-openapi/jsonpointer",
)
go_repository(
name = "com_github_go_openapi_loads",
commit = "8548893a17237be4a5b2f74773f23002f4179bbe",
importpath = "github.com/go-openapi/loads",
)
go_repository(
name = "com_github_go_openapi_jsonreference",
commit = "2903bfd4bfbaf188694f1edf731f2725a8fa344f",
importpath = "github.com/go-openapi/jsonreference",
)
go_repository(
name = "com_github_puerkitobio_purell",
commit = "44968752391892e1b0d0b821ee79e9a85fa13049",
importpath = "github.com/PuerkitoBio/purell",
)
go_repository(
name = "com_github_puerkitobio_urlesc",
commit = "de5bf2ad457846296e2031421a34e2568e304e35",
importpath = "github.com/PuerkitoBio/urlesc",
)
go_repository(
name = "com_github_abbot_go_http_auth",
commit = "860ed7f246ff5abfdbd5c7ce618fd37b49fd3d86",
importpath = "github.com/abbot/go-http-auth",
)
go_repository(
name = "com_github_urfave_cli",
commit = "693af58b4d51b8fcc7f9d89576da170765980581",
importpath = "github.com/urfave/cli",
)
go_repository(
name = "org_golang_x_crypto",
commit = "4def268fd1a49955bfb3dda92fe3db4f924f2285",
importpath = "golang.org/x/crypto",
)
go_repository(
name = "org_golang_x_oauth2",
commit = "0f29369cfe4552d0e4bcddc57cc75f4d7e672a33",
importpath = "golang.org/x/oauth2",
)
go_repository(
name = "com_github_djherbis_atime",
commit = "2d569978378562c466df74eda2d82900f435c5f4",
importpath = "github.com/djherbis/atime",
)
go_repository(
name = "com_google_cloud_go",
commit = "71971b35976fc2f904ed2772536790a5458d9996",
importpath = "cloud.google.com/go",
)
go_repository(
name = "org_golang_x_net",
commit = "da137c7871d730100384dbcf36e6f8fa493aef5b",
importpath = "golang.org/x/net",
)
go_repository(
name = "com_github_stackexchange_wmi",
commit = "cbe66965904dbe8a6cd589e2298e5d8b986bd7dd",
importpath = "github.com/stackexchange/wmi",
)
go_repository(
name = "com_github_go_ole_go_ole",
commit = "938323a72016e9cf84fa5fba7635089efb0ad87f",
importpath = "github.com/go-ole/go-ole",
)
go_repository(
name = "com_github_dustin_go_humanize",
commit = "9f541cc9db5d55bce703bd99987c9d5cb8eea45e",
importpath = "github.com/dustin/go-humanize",
)
go_repository(
name = "io_k8s_client_go",
commit = "0c47f9da00011ea9a8717671127ac21625c7a6c0",
importpath = "k8s.io/client-go",
)
go_repository(
name = "io_k8s_apimachinery",
commit = "bfcf53abc9f82bad3e534fcb1c36599d3c989ebf",
importpath = "k8s.io/apimachinery",
build_file_proto_mode = "disable",
)
go_repository(
name = "io_k8s_klog",
commit = "6a023d6d0e0954feabd46dc2d3a6a2c3c991fe1a",
importpath = "k8s.io/klog",
)
go_repository(
name = "io_k8s_utils",
commit = "3dccf664f023863740c508fb4284e49742bedfa4",
importpath = "k8s.io/utils",
)
go_repository(
name = "com_github_googleapis_gnostic",
commit = "25d8b0b6698593f520d9d8dc5a88e6b16ca9ecc0",
importpath = "github.com/googleapis/gnostic",
)
go_repository(
name = "io_k8s_api",
commit = "3043179095b6baa0087e8735d796bd6dfa881f8e",
importpath = "k8s.io/api",
build_file_proto_mode = "disable",
)
go_repository(
name = "org_golang_x_time",
commit = "9d24e82272b4f38b78bc8cff74fa936d31ccd8ef",
importpath = "golang.org/x/time",
)
go_repository(
name = "com_github_google_gofuzz",
commit = "f140a6486e521aad38f5917de355cbf147cc0496",
importpath = "github.com/google/gofuzz",
)
go_repository(
name = "io_k8s_sigs_yaml",
commit = "4cd0c284b15f1735b8cc247df097d262b8903f9f",
importpath = "sigs.k8s.io/yaml",
)
go_repository(
name = "com_github_modern_go_reflect2",
commit = "94122c33edd36123c84d5368cfb2b69df93a0ec8",
importpath = "github.com/modern-go/reflect2",
)
go_repository(
name = "com_github_davecgh_go_spew",
commit = "d8f796af33cc11cb798c1aaeb27a4ebc5099927d",
importpath = "github.com/davecgh/go-spew",
)
go_repository(
name = "com_github_json_iterator_go",
commit = "27518f6661eba504be5a7a9a9f6d9460d892ade3",
importpath = "github.com/json-iterator/go",
)
go_repository(
name = "com_github_modern_go_concurrent",
commit = "bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94",
importpath = "github.com/modern-go/concurrent",
)
go_repository(
name = "in_gopkg_inf_v0",
commit = "d2d2541c53f18d2a059457998ce2876cc8e67cbf",
importpath = "gopkg.in/inf.v0",
)