blob: 93dbe22bae0eef291cd8f20d3256eb18ce108426 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_layer", "container_push")
go_library(
name = "capacifier_lib",
srcs = ["capacifier.go"],
importpath = "code.hackerspace.pl/hscloud/hswaw/capacifier",
visibility = ["//visibility:private"],
deps = [
"@com_github_go_ldap_ldap_v3//:ldap",
"@com_github_golang_glog//:glog",
],
)
go_binary(
name = "capacifier",
embed = [":capacifier_lib"],
pure = "on",
static = "on",
visibility = ["//visibility:public"],
)
container_layer(
name = "layer_bin",
directory = "/hswaw/capacifier/",
files = [
":capacifier",
],
)
container_image(
name = "runtime",
base = "@prodimage-bionic//image",
layers = [
":layer_bin",
],
)
container_push(
name = "push",
format = "Docker",
image = ":runtime",
registry = "registry.k0.hswaw.net",
repository = "q3k/capacifier",
tag = "1698514087",
)