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
|
load("//images:defs.bzl", "docker_image")
load("//tools:defs.bzl", "go_binary", "pkg_tar")
package(licenses = ["notice"])
docker_image(
name = "webhook_image",
data = ":files",
statements = ['ENTRYPOINT ["/webhook"]'],
)
# files is the full file system of the webhook container. It is simply:
# /
# └─ webhook
pkg_tar(
name = "files",
srcs = [":webhook"],
extension = "tgz",
strip_prefix = "/third_party/gvisor/webhook",
)
go_binary(
name = "webhook",
srcs = ["main.go"],
pure = "on",
static = "on",
deps = ["//webhook/pkg/cli"],
)
|