2016-09-15 08:47:42 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/docker:docker.bzl", "docker_build")
|
|
|
|
|
|
|
|
docker_build(
|
|
|
|
name = "busybox",
|
|
|
|
debs = [
|
|
|
|
"@busybox_deb//file",
|
|
|
|
],
|
|
|
|
symlinks = {
|
|
|
|
"/bin/sh": "/bin/busybox",
|
|
|
|
"/usr/bin/busybox": "/bin/busybox",
|
|
|
|
"/usr/sbin/busybox": "/bin/busybox",
|
|
|
|
"/sbin/busybox": "/bin/busybox",
|
|
|
|
},
|
|
|
|
)
|
|
|
|
|
|
|
|
docker_build(
|
|
|
|
name = "busybox-libc",
|
|
|
|
base = ":busybox",
|
|
|
|
debs = [
|
|
|
|
"@libc_deb//file",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
docker_build(
|
|
|
|
name = "busybox-net",
|
|
|
|
base = ":busybox-libc",
|
|
|
|
debs = [
|
|
|
|
"@iptables_deb//file",
|
|
|
|
"@iproute2_deb//file",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
[docker_build(
|
2017-01-04 22:14:02 +00:00
|
|
|
name = binary,
|
2016-09-15 08:47:42 +00:00
|
|
|
base = ":busybox-libc",
|
2017-01-04 22:14:02 +00:00
|
|
|
cmd = ["/usr/bin/" + binary],
|
|
|
|
debs = [
|
|
|
|
"//build/debs:%s.deb" % binary,
|
2016-09-15 08:47:42 +00:00
|
|
|
],
|
|
|
|
repository = "gcr.io/google-containers",
|
2017-01-04 22:14:02 +00:00
|
|
|
) for binary in [
|
|
|
|
"kube-apiserver",
|
|
|
|
"kube-controller-manager",
|
|
|
|
"kube-scheduler",
|
|
|
|
"kubernetes-discovery",
|
|
|
|
]]
|
2016-09-15 08:47:42 +00:00
|
|
|
|
|
|
|
docker_build(
|
|
|
|
name = "kube-proxy",
|
|
|
|
base = ":busybox-net",
|
|
|
|
cmd = ["/kube-proxy"],
|
2017-01-04 22:14:02 +00:00
|
|
|
debs = [
|
|
|
|
"//build/debs:kube-proxy.deb",
|
2016-09-15 08:47:42 +00:00
|
|
|
],
|
|
|
|
repository = "gcr.io/google-containers",
|
|
|
|
)
|