forked from bentol/prometheus-cardinality-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
43 lines (40 loc) · 1.11 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
subinclude("///third_party/subrepos/pleasings//docker")
go_binary(
name = "prometheus-cardinality-exporter",
srcs = ["main.go"],
static=True,
deps = [
"//cardinality",
"//third_party/go:prometheus",
"//third_party/go/kubernetes:apimachinery",
"//third_party/go/kubernetes:client-go",
"//third_party/go:logrus",
"//third_party/go:backoff",
"//third_party/go:go-flags",
"//third_party/go:yaml.v3",
],
)
docker_image(
name = "prometheus-cardinality-exporter_alpine",
srcs = [
":prometheus-cardinality-exporter",
],
labels = ["docker"],
dockerfile = "Dockerfile-prometheus-cardinality-exporter",
image = "prometheus-cardinality-exporter",
visibility = [
"//k8s",
],
)
docker_image(
name = "prometheus-cardinality-exporter_distroless",
srcs = [
":prometheus-cardinality-exporter",
],
dockerfile = "Dockerfile-prometheus-cardinality-exporter_distroless",
labels = ["docker"],
image = "prometheus-cardinality-exporter_distroless",
visibility = [
"//k8s",
],
)