...
1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
2load("//hack/build/rules/container:index.bzl", "container_push", "go_oci_image")
3
4go_oci_image(
5 name = "plank_container",
6 embed = [":plank_lib"],
7 tags = [
8 "manual",
9 "no-remote-cache",
10 ],
11)
12
13container_push(
14 name = "container_push",
15 image = ":plank_container",
16 image_name = "plank",
17 repository_file = "//hack/build/rules/container:workloads-repo",
18)
19
20go_library(
21 name = "plank_lib",
22 srcs = ["main.go"],
23 importpath = "edge-infra.dev/cmd/edge/monitoring/plank",
24 visibility = ["//visibility:private"],
25 deps = [
26 "//pkg/edge/monitoring/plank",
27 "//pkg/lib/db/postgres",
28 "//pkg/lib/logging",
29 "//pkg/lib/runtime",
30 "//pkg/lib/runtime/healthz",
31 "//pkg/lib/runtime/manager",
32 "//pkg/lib/runtime/metrics",
33 "//pkg/lib/runtime/subscriber",
34 "@com_github_peterbourgon_ff_v3//:ff",
35 ],
36)
37
38go_binary(
39 name = "plank",
40 embed = [":plank_lib"],
41 visibility = ["//visibility:public"],
42)
View as plain text