mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-15 02:40:23 +00:00
47 lines
1.1 KiB
Python
47 lines
1.1 KiB
Python
|
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",
|
||
|
images = {"gcr.io/google-containers/hyperkube-amd64:{STABLE_DOCKER_TAG}": "hyperkube-internal"},
|
||
|
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"],
|
||
|
)
|