2018-01-09 18:57:14 +00:00
|
|
|
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_build", "docker_bundle")
|
|
|
|
|
|
|
|
docker_build(
|
|
|
|
name = "hyperkube-internal",
|
|
|
|
base = "@debian-hyperkube-base-amd64//image",
|
|
|
|
files = [
|
|
|
|
"//cmd/hyperkube",
|
|
|
|
],
|
|
|
|
symlinks = {
|
|
|
|
"/%s" % path: "/hyperkube"
|
|
|
|
for path in [
|
|
|
|
"/apiserver",
|
|
|
|
"/controller-manager",
|
|
|
|
"/kubectl",
|
|
|
|
"/kubelet",
|
|
|
|
"/proxy",
|
|
|
|
"/scheduler",
|
|
|
|
"/usr/local/bin/kube-apiserver",
|
|
|
|
"/usr/local/bin/kube-controller-manager",
|
|
|
|
"/usr/local/bin/kubectl",
|
|
|
|
"/usr/local/bin/kubelet",
|
|
|
|
"/usr/local/bin/kube-proxy",
|
|
|
|
"/usr/local/bin/kube-scheduler",
|
|
|
|
]
|
|
|
|
},
|
|
|
|
)
|
|
|
|
|
|
|
|
docker_bundle(
|
|
|
|
name = "hyperkube",
|
2018-03-06 22:33:18 +00:00
|
|
|
images = {"k8s.gcr.io/hyperkube-amd64:{STABLE_DOCKER_TAG}": "hyperkube-internal"},
|
2018-01-09 18:57:14 +00:00
|
|
|
stamp = True,
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [":package-srcs"],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|