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 | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 4 | |
| 5 | # Python rules |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 6 | git_repository( |
| 7 | name = "io_bazel_rules_python", |
| 8 | remote = "https://github.com/bazelbuild/rules_python.git", |
| 9 | commit = "ebd7adcbcafcc8abe3fd8e5b0e42e10ced1bfe27", |
| 10 | ) |
| 11 | |
| 12 | # Python dependencies |
| 13 | |
| 14 | load("@io_bazel_rules_python//python:pip.bzl", "pip_import") |
| 15 | |
| 16 | pip_import( |
Sergiusz Bazanski | 0752971 | 2019-01-18 01:24:38 +0100 | [diff] [blame] | 17 | name = "py_deps", |
| 18 | requirements = "//:requirements.txt", |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 19 | ) |
| 20 | |
| 21 | load("@py_deps//:requirements.bzl", "pip_install") |
Sergiusz Bazanski | 0752971 | 2019-01-18 01:24:38 +0100 | [diff] [blame] | 22 | |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 23 | pip_install() |
| 24 | |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 25 | # Docker rules |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 26 | |
Sergiusz Bazanski | 3e59718 | 2019-04-19 14:40:47 +0200 | [diff] [blame] | 27 | http_archive( |
| 28 | name = "io_bazel_rules_docker", |
| 29 | sha256 = "aed1c249d4ec8f703edddf35cbe9dfaca0b5f5ea6e4cd9e83e99f3b0d1136c3d", |
| 30 | strip_prefix = "rules_docker-0.7.0", |
| 31 | urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.7.0.tar.gz"], |
| 32 | ) |
| 33 | |
| 34 | # Go rules |
Sergiusz Bazanski | 0752971 | 2019-01-18 01:24:38 +0100 | [diff] [blame] | 35 | |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 36 | http_archive( |
| 37 | name = "io_bazel_rules_go", |
Sergiusz Bazanski | 3a2a693 | 2019-04-06 01:20:19 +0200 | [diff] [blame] | 38 | urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.18.1/rules_go-0.18.1.tar.gz"], |
| 39 | sha256 = "77dfd303492f2634de7a660445ee2d3de2960cbd52f97d8c0dffa9362d3ddef9", |
Sergiusz Bazanski | f2a812b | 2019-01-13 17:51:34 +0100 | [diff] [blame] | 40 | ) |
| 41 | |
Sergiusz Bazanski | 3a2a693 | 2019-04-06 01:20:19 +0200 | [diff] [blame] | 42 | 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] | 43 | |
| 44 | go_rules_dependencies() |
| 45 | |
| 46 | go_register_toolchains() |
| 47 | |
| 48 | # Go Gazelle rules |
| 49 | |
| 50 | http_archive( |
| 51 | name = "bazel_gazelle", |
| 52 | urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.16.0/bazel-gazelle-0.16.0.tar.gz"], |
| 53 | sha256 = "7949fc6cc17b5b191103e97481cf8889217263acf52e00b560683413af204fcb", |
| 54 | ) |
| 55 | |
| 56 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") |
| 57 | |
| 58 | gazelle_dependencies() |
| 59 | |
| 60 | # Go repositories |
| 61 | |
| 62 | go_repository( |
| 63 | name = "io_k8s_kubernetes", |
| 64 | importpath = "k8s.io/kubernetes", |
| 65 | # Get from HTTP instead, this repository is _big_ |
| 66 | urls = ["https://github.com/kubernetes/kubernetes/archive/v1.13.2.tar.gz"], |
| 67 | sha256 = "2791a2be64e9e1d027962cdd2a42cdc90d26927623779aaf787b575fc623e2d7", |
| 68 | strip_prefix = "kubernetes-1.13.2", |
| 69 | ) |
| 70 | |
| 71 | go_repository( |
| 72 | name = "io_kubernetes_build", |
| 73 | commit = "796fd4636e54971f81cbbc663437d44c643159aa", |
| 74 | importpath = "k8s.io/repo-infra", |
| 75 | ) |
| 76 | |
| 77 | go_repository( |
| 78 | name = "com_github_ksonnet_kubecfg", |
| 79 | commit = "59bc7dedf70e7496a2837207d8723f98f0e5f8e8", |
| 80 | importpath = "github.com/ksonnet/kubecfg", |
| 81 | ) |
Sergiusz Bazanski | 0752971 | 2019-01-18 01:24:38 +0100 | [diff] [blame] | 82 | |
| 83 | go_repository( |
| 84 | name = "com_github_projectcalico_calicoctl", |
| 85 | importpath = "github.com/projectcalico/calicoctl", |
| 86 | # This fork implements explicit Bazel rules |
| 87 | remote = "https://github.com/q3k/calicoctl", |
| 88 | vcs = "git", |
| 89 | commit = "1bc31862f07e7539ca493de9137ed1ad56cc9f43", |
| 90 | build_file_generation = "off", |
| 91 | ) |
Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 92 | |
| 93 | go_repository( |
| 94 | name = "com_github_shirou_gopsutil", |
| 95 | commit = "2cbc9195c892b304060269ef280375236d2fcac9", |
| 96 | importpath = "github.com/shirou/gopsutil", |
| 97 | ) |
Sergiusz Bazanski | acd001b | 2019-04-09 13:17:06 +0200 | [diff] [blame] | 98 | |
| 99 | go_repository( |
| 100 | name = "com_github_cloudflare_cfssl", |
| 101 | commit = "768cd563887febaad559b511aaa5964823ccb4ab", |
| 102 | importpath = "github.com/cloudflare/cfssl", |
| 103 | ) |