
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Build hyperkube image using Bazel **What this PR does / why we need it**: Before we had the hyperkube base image, it was difficult to build the hyperkube with Bazel. Now that we have the base image with all the necessary dependencies, this has become trivial. This will enable federation jobs etc on prow. **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` /assign @BenTheElder @mikedanese @spxtr cc @luxas @pipejakob
80 lines
3.1 KiB
Python
80 lines
3.1 KiB
Python
http_archive(
|
|
name = "io_bazel_rules_go",
|
|
sha256 = "27a13726ff8621cfa4592fbef116b253043c2b093c8814265dc4489a0e67d229",
|
|
strip_prefix = "rules_go-82483596ec203eb9c1849937636f4cbed83733eb",
|
|
urls = ["https://github.com/bazelbuild/rules_go/archive/82483596ec203eb9c1849937636f4cbed83733eb.tar.gz"],
|
|
)
|
|
|
|
http_archive(
|
|
name = "io_kubernetes_build",
|
|
sha256 = "ca8fa1ee0928220d77fcaa6bcf40a26c57800c024e21b08c8dd9cc8fbf910236",
|
|
strip_prefix = "repo-infra-0aafaab9e158d3628804242c6a9c4dd3eb8bce1f",
|
|
urls = ["https://github.com/kubernetes/repo-infra/archive/0aafaab9e158d3628804242c6a9c4dd3eb8bce1f.tar.gz"],
|
|
)
|
|
|
|
ETCD_VERSION = "3.1.10"
|
|
|
|
new_http_archive(
|
|
name = "com_coreos_etcd",
|
|
build_file = "third_party/etcd.BUILD",
|
|
sha256 = "2d335f298619c6fb02b1124773a56966e448ad9952b26fea52909da4fe80d2be",
|
|
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)],
|
|
)
|
|
|
|
# This contains a patch to not prepend ./ to tarfiles produced by pkg_tar.
|
|
# When merged upstream, we'll no longer need to use ixdy's fork:
|
|
# https://bazel-review.googlesource.com/#/c/10390/
|
|
http_archive(
|
|
name = "io_bazel",
|
|
sha256 = "892a84aa1e7c1f99fb57bb056cb648745c513077252815324579a012d263defb",
|
|
strip_prefix = "bazel-df2c687c22bdd7c76f3cdcc85f38fefd02f0b844",
|
|
urls = ["https://github.com/ixdy/bazel/archive/df2c687c22bdd7c76f3cdcc85f38fefd02f0b844.tar.gz"],
|
|
)
|
|
|
|
http_archive(
|
|
name = "io_bazel_rules_docker",
|
|
sha256 = "e86b8764fccc62dddf6e08382ba692b16479a2af478080b1ece4d9add8abbb9a",
|
|
strip_prefix = "rules_docker-28d492bc1dc1275e2c6ff74e51adc864e59ddc76",
|
|
urls = ["https://github.com/bazelbuild/rules_docker/archive/28d492bc1dc1275e2c6ff74e51adc864e59ddc76.tar.gz"],
|
|
)
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_repositories")
|
|
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_repositories", "docker_pull")
|
|
|
|
go_repositories(
|
|
go_version = "1.8.3",
|
|
)
|
|
|
|
docker_repositories()
|
|
|
|
http_file(
|
|
name = "kubernetes_cni",
|
|
sha256 = "05ab3937bc68562e989dc143362ec4d4275262ba9f359338aed720fc914457a5",
|
|
url = "https://storage.googleapis.com/kubernetes-release/network-plugins/cni-amd64-0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff.tar.gz",
|
|
)
|
|
|
|
docker_pull(
|
|
name = "debian-iptables-amd64",
|
|
digest = "sha256:2e747bc7455b46350d8e57f05c03e109fa306861e7b2a2e8e1cd563932170cf1",
|
|
registry = "gcr.io",
|
|
repository = "google-containers/debian-iptables-amd64",
|
|
tag = "v8", # ignored, but kept here for documentation
|
|
)
|
|
|
|
docker_pull(
|
|
name = "debian-hyperkube-base-amd64",
|
|
digest = "sha256:e45d35f9f967ef7d49496d1d2e6f9ad378a29012b0c90f78b5d59a254f3135e6",
|
|
registry = "gcr.io",
|
|
repository = "google-containers/debian-hyperkube-base-amd64",
|
|
tag = "0.3", # ignored, but kept here for documentation
|
|
)
|
|
|
|
docker_pull(
|
|
name = "official_busybox",
|
|
digest = "sha256:be3c11fdba7cfe299214e46edc642e09514dbb9bbefcd0d3836c05a1e0cd0642",
|
|
registry = "index.docker.io",
|
|
repository = "library/busybox",
|
|
tag = "latest", # ignored, but kept here for documentation
|
|
)
|