forked from hswaw/hscloud
83 lines
2.3 KiB
Python
83 lines
2.3 KiB
Python
# Python rules
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
|
|
|
git_repository(
|
|
name = "io_bazel_rules_python",
|
|
remote = "https://github.com/bazelbuild/rules_python.git",
|
|
commit = "ebd7adcbcafcc8abe3fd8e5b0e42e10ced1bfe27",
|
|
)
|
|
|
|
# Python dependencies
|
|
|
|
load("@io_bazel_rules_python//python:pip.bzl", "pip_import")
|
|
|
|
pip_import(
|
|
name = "py_deps",
|
|
requirements = "//:requirements.txt",
|
|
)
|
|
|
|
load("@py_deps//:requirements.bzl", "pip_install")
|
|
|
|
pip_install()
|
|
|
|
# Go rules
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
http_archive(
|
|
name = "io_bazel_rules_go",
|
|
url = "https://github.com/bazelbuild/rules_go/releases/download/0.16.5/rules_go-0.16.5.tar.gz",
|
|
sha256 = "7be7dc01f1e0afdba6c8eb2b43d2fa01c743be1b9273ab1eaf6c233df078d705",
|
|
)
|
|
|
|
load("@io_bazel_rules_go//go:def.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.16.0/bazel-gazelle-0.16.0.tar.gz"],
|
|
sha256 = "7949fc6cc17b5b191103e97481cf8889217263acf52e00b560683413af204fcb",
|
|
)
|
|
|
|
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
|
|
|
|
gazelle_dependencies()
|
|
|
|
# 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.13.2.tar.gz"],
|
|
sha256 = "2791a2be64e9e1d027962cdd2a42cdc90d26927623779aaf787b575fc623e2d7",
|
|
strip_prefix = "kubernetes-1.13.2",
|
|
)
|
|
|
|
go_repository(
|
|
name = "io_kubernetes_build",
|
|
commit = "796fd4636e54971f81cbbc663437d44c643159aa",
|
|
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",
|
|
)
|