mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
395c0ac172
PiperOrigin-RevId: 702043346
37 lines
714 B
Python
37 lines
714 B
Python
load("//images:defs.bzl", "docker_image")
|
|
load("//tools:defs.bzl", "go_binary", "pkg_tar")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
docker_image(
|
|
name = "image",
|
|
data = ":files",
|
|
statements = ['ENTRYPOINT ["/webhook"]'],
|
|
tags = [
|
|
"local",
|
|
"manual",
|
|
"no-sandbox",
|
|
],
|
|
)
|
|
|
|
# files is the full file system of the webhook container. It is simply:
|
|
# /
|
|
# └─ webhook
|
|
pkg_tar(
|
|
name = "files",
|
|
srcs = [":webhook"],
|
|
extension = "tgz",
|
|
strip_prefix = "/webhook",
|
|
)
|
|
|
|
go_binary(
|
|
name = "webhook",
|
|
srcs = ["main.go"],
|
|
features = ["fully_static_link"],
|
|
pure = "on",
|
|
deps = ["//webhook/pkg/cli"],
|
|
)
|