2018-04-12 22:14:46 +00:00
|
|
|
load("//build:workspace_mirror.bzl", "mirror")
|
2018-06-06 13:35:25 +00:00
|
|
|
load("//build:workspace.bzl", "CRI_TOOLS_VERSION")
|
2018-04-12 22:14:46 +00:00
|
|
|
|
2017-05-15 22:51:18 +00:00
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_go",
|
2018-05-03 23:41:04 +00:00
|
|
|
sha256 = "8b68d0630d63d95dacc0016c3bb4b76154fe34fca93efd65d1c366de3fcb4294",
|
|
|
|
urls = mirror("https://github.com/bazelbuild/rules_go/releases/download/0.12.1/rules_go-0.12.1.tar.gz"),
|
2017-05-15 22:51:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "io_kubernetes_build",
|
2018-05-18 22:20:56 +00:00
|
|
|
sha256 = "6d87da8d97ccac3702eb9894541c32dd19a312f783f863e44bf8262d05dfaf2e",
|
|
|
|
strip_prefix = "repo-infra-3c350a455362b622fe786e63f8f07b2a87f54f7b",
|
|
|
|
urls = mirror("https://github.com/kubernetes/repo-infra/archive/3c350a455362b622fe786e63f8f07b2a87f54f7b.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",
|
2018-04-12 22:14:46 +00:00
|
|
|
urls = mirror("https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"),
|
2018-01-12 18:08:23 +00:00
|
|
|
)
|
|
|
|
|
2018-03-14 20:51:39 +00:00
|
|
|
ETCD_VERSION = "3.2.18"
|
2017-06-06 23:26:20 +00:00
|
|
|
|
|
|
|
new_http_archive(
|
|
|
|
name = "com_coreos_etcd",
|
|
|
|
build_file = "third_party/etcd.BUILD",
|
2018-03-14 20:51:39 +00:00
|
|
|
sha256 = "b729db0732448064271ea6fdcb901773c4fe917763ca07776f22d0e5e0bd4097",
|
2017-06-06 23:26:20 +00:00
|
|
|
strip_prefix = "etcd-v%s-linux-amd64" % ETCD_VERSION,
|
2018-04-12 22:14:46 +00:00
|
|
|
urls = mirror("https://github.com/coreos/etcd/releases/download/v%s/etcd-v%s-linux-amd64.tar.gz" % (ETCD_VERSION, ETCD_VERSION)),
|
2017-06-06 23:26:20 +00:00
|
|
|
)
|
|
|
|
|
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",
|
2018-04-12 22:14:46 +00:00
|
|
|
urls = mirror("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-05-01 23:26:01 +00:00
|
|
|
versions.check(minimum_bazel_version = "0.13.0")
|
2017-09-18 22:29:04 +00:00
|
|
|
|
2018-05-03 23:41:04 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_download_sdk", "go_register_toolchains", "go_rules_dependencies")
|
|
|
|
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_pull", "docker_repositories")
|
2017-05-15 22:51:18 +00:00
|
|
|
|
2017-09-18 22:29:04 +00:00
|
|
|
go_rules_dependencies()
|
|
|
|
|
|
|
|
go_register_toolchains(
|
2018-07-02 19:52:29 +00:00
|
|
|
go_version = "1.10.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",
|
2018-04-12 22:14:46 +00:00
|
|
|
urls = mirror("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
|
|
|
|
2018-06-06 13:35:25 +00:00
|
|
|
http_file(
|
|
|
|
name = "cri_tools",
|
2018-07-13 07:02:49 +00:00
|
|
|
sha256 = "ccf83574556793ceb01717dc91c66b70f183c60c2bbec70283939aae8fdef768",
|
2018-06-06 13:35:25 +00:00
|
|
|
urls = mirror("https://github.com/kubernetes-incubator/cri-tools/releases/download/v%s/crictl-v%s-linux-amd64.tar.gz" % (CRI_TOOLS_VERSION, CRI_TOOLS_VERSION)),
|
|
|
|
)
|
|
|
|
|
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",
|
2018-03-19 15:09:37 +00:00
|
|
|
digest = "sha256:cc782ed16599000ca4c85d47ec6264753747ae1e77520894dca84b104a7621e2",
|
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",
|
2018-03-19 15:09:37 +00:00
|
|
|
tag = "0.10", # 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
|
|
|
)
|
2018-04-12 22:14:46 +00:00
|
|
|
|
|
|
|
load("//build:workspace_mirror.bzl", "export_urls")
|
2018-05-01 23:26:01 +00:00
|
|
|
|
2018-04-12 22:14:46 +00:00
|
|
|
export_urls("workspace_urls")
|