2017-05-15 22:51:18 +00:00
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_go",
|
2018-01-30 01:39:05 +00:00
|
|
|
sha256 = "af4281751a0e3b5d87fb6a52c83d358871b4f83d7acbe6e65a901fba6612a03e",
|
|
|
|
strip_prefix = "rules_go-bdf2df58c0d352ffa262ae4b36c7a1a2d6e3f0c9",
|
|
|
|
urls = ["https://github.com/bazelbuild/rules_go/archive/bdf2df58c0d352ffa262ae4b36c7a1a2d6e3f0c9.tar.gz"],
|
2017-05-15 22:51:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "io_kubernetes_build",
|
2018-01-19 01:02:33 +00:00
|
|
|
sha256 = "f4946917d95c54aaa98d1092757256e491f8f48fd550179134f00f902bc0b4ce",
|
|
|
|
strip_prefix = "repo-infra-c75960142a50de16ac6225b0843b1ff3476ab0b4",
|
|
|
|
urls = ["https://github.com/kubernetes/repo-infra/archive/c75960142a50de16ac6225b0843b1ff3476ab0b4.tar.gz"],
|
2017-05-15 22:51:18 +00:00
|
|
|
)
|
|
|
|
|
2018-01-12 18:08:23 +00:00
|
|
|
http_archive(
|
|
|
|
name = "bazel_skylib",
|
|
|
|
sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d",
|
|
|
|
strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b",
|
|
|
|
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"],
|
|
|
|
)
|
|
|
|
|
2018-01-23 00:46:31 +00:00
|
|
|
ETCD_VERSION = "3.2.14"
|
2017-06-06 23:26:20 +00:00
|
|
|
|
|
|
|
new_http_archive(
|
|
|
|
name = "com_coreos_etcd",
|
|
|
|
build_file = "third_party/etcd.BUILD",
|
2018-01-23 00:46:31 +00:00
|
|
|
sha256 = "f77398f558ff19b65a0bf978b47868e03683f27090c56c054415666b1d78bf42",
|
2017-06-06 23:26:20 +00:00
|
|
|
strip_prefix = "etcd-v%s-linux-amd64" % ETCD_VERSION,
|
|
|
|
urls = ["https://github.com/coreos/etcd/releases/download/v%s/etcd-v%s-linux-amd64.tar.gz" % (ETCD_VERSION, ETCD_VERSION)],
|
|
|
|
)
|
|
|
|
|
2017-05-15 22:51:18 +00:00
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_docker",
|
2017-09-18 22:29:04 +00:00
|
|
|
sha256 = "c440717ee9b1b2f4a1e9bf5622539feb5aef9db83fc1fa1517818f13c041b0be",
|
|
|
|
strip_prefix = "rules_docker-8bbe2a8abd382641e65ff7127a3700a8530f02ce",
|
|
|
|
urls = ["https://github.com/bazelbuild/rules_docker/archive/8bbe2a8abd382641e65ff7127a3700a8530f02ce.tar.gz"],
|
2017-05-15 22:51:18 +00:00
|
|
|
)
|
|
|
|
|
2018-01-12 18:08:23 +00:00
|
|
|
load("@bazel_skylib//:lib.bzl", "versions")
|
2017-09-18 22:29:04 +00:00
|
|
|
|
2018-02-02 19:46:18 +00:00
|
|
|
versions.check(minimum_bazel_version = "0.10.0")
|
2017-09-18 22:29:04 +00:00
|
|
|
|
2017-11-17 23:23:56 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains", "go_download_sdk")
|
2017-06-02 01:00:24 +00:00
|
|
|
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories", "docker_pull")
|
2017-05-15 22:51:18 +00:00
|
|
|
|
2017-09-18 22:29:04 +00:00
|
|
|
go_rules_dependencies()
|
|
|
|
|
|
|
|
go_register_toolchains(
|
2018-01-30 01:44:28 +00:00
|
|
|
go_version = "1.9.3",
|
2017-05-15 22:51:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
docker_repositories()
|
|
|
|
|
|
|
|
http_file(
|
|
|
|
name = "kubernetes_cni",
|
2017-08-24 06:32:14 +00:00
|
|
|
sha256 = "f04339a21b8edf76d415e7f17b620e63b8f37a76b2f706671587ab6464411f2d",
|
|
|
|
url = "https://storage.googleapis.com/kubernetes-release/network-plugins/cni-plugins-amd64-v0.6.0.tgz",
|
2017-05-15 22:51:18 +00:00
|
|
|
)
|
2017-06-02 01:00:24 +00:00
|
|
|
|
|
|
|
docker_pull(
|
|
|
|
name = "debian-iptables-amd64",
|
2018-02-12 22:01:11 +00:00
|
|
|
digest = "sha256:fb18678f8203ca1bd2fad2671e3ebd80cb408a1baae423d4ad39c05f4caac4e1",
|
Switch to k8s.gcr.io vanity domain
This is the 2nd attempt. The previous was reverted while we figured out
the regional mirrors (oops).
New plan: k8s.gcr.io is a read-only facade that auto-detects your source
region (us, eu, or asia for now) and pulls from the closest. To publish
an image, push k8s-staging.gcr.io and it will be synced to the regionals
automatically (similar to today). For now the staging is an alias to
gcr.io/google_containers (the legacy URL).
When we move off of google-owned projects (working on it), then we just
do a one-time sync, and change the google-internal config, and nobody
outside should notice.
We can, in parallel, change the auto-sync into a manual sync - send a PR
to "promote" something from staging, and a bot activates it. Nice and
visible, easy to keep track of.
2018-01-17 19:36:53 +00:00
|
|
|
registry = "k8s.gcr.io",
|
|
|
|
repository = "debian-iptables-amd64",
|
2017-11-21 01:32:50 +00:00
|
|
|
tag = "v10", # ignored, but kept here for documentation
|
2017-06-23 07:03:40 +00:00
|
|
|
)
|
|
|
|
|
2017-09-21 21:25:58 +00:00
|
|
|
docker_pull(
|
|
|
|
name = "debian-hyperkube-base-amd64",
|
2017-11-28 22:31:00 +00:00
|
|
|
digest = "sha256:fc1b461367730660ac5a40c1eb2d1b23221829acf8a892981c12361383b3742b",
|
Switch to k8s.gcr.io vanity domain
This is the 2nd attempt. The previous was reverted while we figured out
the regional mirrors (oops).
New plan: k8s.gcr.io is a read-only facade that auto-detects your source
region (us, eu, or asia for now) and pulls from the closest. To publish
an image, push k8s-staging.gcr.io and it will be synced to the regionals
automatically (similar to today). For now the staging is an alias to
gcr.io/google_containers (the legacy URL).
When we move off of google-owned projects (working on it), then we just
do a one-time sync, and change the google-internal config, and nobody
outside should notice.
We can, in parallel, change the auto-sync into a manual sync - send a PR
to "promote" something from staging, and a bot activates it. Nice and
visible, easy to keep track of.
2018-01-17 19:36:53 +00:00
|
|
|
registry = "k8s.gcr.io",
|
|
|
|
repository = "debian-hyperkube-base-amd64",
|
2017-11-28 22:31:00 +00:00
|
|
|
tag = "0.8", # ignored, but kept here for documentation
|
2017-09-21 21:25:58 +00:00
|
|
|
)
|
|
|
|
|
2017-06-23 07:03:40 +00:00
|
|
|
docker_pull(
|
|
|
|
name = "official_busybox",
|
2018-02-12 23:19:37 +00:00
|
|
|
digest = "sha256:4cee1979ba0bf7db9fc5d28fb7b798ca69ae95a47c5fecf46327720df4ff352d",
|
2017-06-23 07:03:40 +00:00
|
|
|
registry = "index.docker.io",
|
|
|
|
repository = "library/busybox",
|
|
|
|
tag = "latest", # ignored, but kept here for documentation
|
2017-06-02 01:00:24 +00:00
|
|
|
)
|