2018-10-29 19:54:33 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
|
2018-04-12 22:14:46 +00:00
|
|
|
load("//build:workspace_mirror.bzl", "mirror")
|
2018-12-04 03:37:16 +00:00
|
|
|
load("//build:workspace.bzl", "CNI_VERSION", "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",
|
2019-01-25 19:38:58 +00:00
|
|
|
sha256 = "ade51a315fa17347e5c31201fdc55aa5ffb913377aa315dceb56ee9725e620ee",
|
|
|
|
urls = mirror("https://github.com/bazelbuild/rules_go/releases/download/0.16.6/rules_go-0.16.6.tar.gz"),
|
2017-05-15 22:51:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "io_kubernetes_build",
|
2018-10-29 18:57:15 +00:00
|
|
|
sha256 = "21160531ea8a9a4001610223ad815622bf60671d308988c7057168a495a7e2e8",
|
|
|
|
strip_prefix = "repo-infra-b4bc4f1552c7fc1d4654753ca9b0e5e13883429f",
|
|
|
|
urls = mirror("https://github.com/kubernetes/repo-infra/archive/b4bc4f1552c7fc1d4654753ca9b0e5e13883429f.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-11-30 19:48:58 +00:00
|
|
|
ETCD_VERSION = "3.3.10"
|
2017-06-06 23:26:20 +00:00
|
|
|
|
2018-10-29 19:54:33 +00:00
|
|
|
http_archive(
|
2017-06-06 23:26:20 +00:00
|
|
|
name = "com_coreos_etcd",
|
2018-10-29 19:54:33 +00:00
|
|
|
build_file = "@//third_party:etcd.BUILD",
|
2018-11-30 19:48:58 +00:00
|
|
|
sha256 = "1620a59150ec0a0124a65540e23891243feb2d9a628092fb1edcc23974724a45",
|
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",
|
2018-08-27 20:06:39 +00:00
|
|
|
sha256 = "29d109605e0d6f9c892584f07275b8c9260803bf0c6fcb7de2623b2bedc910bd",
|
|
|
|
strip_prefix = "rules_docker-0.5.1",
|
|
|
|
urls = mirror("https://github.com/bazelbuild/rules_docker/archive/v0.5.1.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-10-30 19:06:32 +00:00
|
|
|
versions.check(minimum_bazel_version = "0.17.2")
|
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(
|
2019-01-25 19:38:58 +00:00
|
|
|
go_version = "1.11.5",
|
2017-05-15 22:51:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
docker_repositories()
|
|
|
|
|
|
|
|
http_file(
|
|
|
|
name = "kubernetes_cni",
|
2018-10-29 19:54:33 +00:00
|
|
|
downloaded_file_path = "kubernetes_cni.tgz",
|
2017-08-24 06:32:14 +00:00
|
|
|
sha256 = "f04339a21b8edf76d415e7f17b620e63b8f37a76b2f706671587ab6464411f2d",
|
2018-12-04 03:37:16 +00:00
|
|
|
urls = mirror("https://storage.googleapis.com/kubernetes-release/network-plugins/cni-plugins-amd64-v%s.tgz" % CNI_VERSION),
|
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-10-29 19:54:33 +00:00
|
|
|
downloaded_file_path = "cri_tools.tgz",
|
2018-09-25 12:25:23 +00:00
|
|
|
sha256 = "e7d913bcce40bf54e37ab1d4b75013c823d0551e6bc088b217bc1893207b4844",
|
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)),
|
|
|
|
)
|
|
|
|
|
2018-10-25 17:16:52 +00:00
|
|
|
docker_pull(
|
|
|
|
name = "debian-base-amd64",
|
2019-02-04 19:36:42 +00:00
|
|
|
digest = "sha256:8ccb65cd2dd7e0c24193d0742a20e4a673dbd11af5a33f16fcd471a31486866c",
|
2018-10-25 17:16:52 +00:00
|
|
|
registry = "k8s.gcr.io",
|
|
|
|
repository = "debian-base-amd64",
|
2019-02-04 19:36:42 +00:00
|
|
|
tag = "0.4.1", # ignored, but kept here for documentation
|
2018-10-25 17:16:52 +00:00
|
|
|
)
|
|
|
|
|
2017-06-02 01:00:24 +00:00
|
|
|
docker_pull(
|
|
|
|
name = "debian-iptables-amd64",
|
2019-02-04 19:36:42 +00:00
|
|
|
digest = "sha256:9c41b4c326304b94eb96fdd2e181aa6e9995cc4642fcdfb570cedd73a419ba39",
|
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",
|
2019-02-04 19:36:42 +00:00
|
|
|
tag = "v11.0.1", # 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",
|
2019-02-04 19:36:42 +00:00
|
|
|
digest = "sha256:5d4ea2fb5fbe9a9a9da74f67cf2faefc881968bc39f2ac5d62d9167e575812a1",
|
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",
|
2019-02-04 19:36:42 +00:00
|
|
|
tag = "0.12.1", # 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-08-27 20:07:29 +00:00
|
|
|
digest = "sha256:cb63aa0641a885f54de20f61d152187419e8f6b159ed11a251a09d115fdff9bd",
|
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")
|