kubernetes/cluster/images/kubemark/BUILD
Matt Matejczyk 686245b876 Fix base image discrepancy when building kubemark.
There are two ways of building kubemark: 1) via Dockerfile and 2) via
bazel.

In CI/CD tests we use the 1) way and use debian:jessie as the base
image.

But if you build kubemark via bazel it will use the discouraged busybox
base image.

This PR fixes that by using debian:jessie everywehre and pinning exact
sha version to make the kubemark image hermetic.
2019-10-24 10:50:10 +02:00

37 lines
789 B
Python

package(default_visibility = ["//visibility:public"])
load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_push")
container_image(
name = "image",
base = "@debian_jessie//image",
entrypoint = ["/kubemark"],
files = ["//cmd/kubemark"],
stamp = True,
)
container_push(
name = "push",
format = "Docker",
image = ":image",
registry = "$(REGISTRY)",
repository = "kubemark",
stamp = True,
tag = "$(IMAGE_TAG)",
tags = ["manual"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)