2018-07-09 02:40:34 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
2018-07-22 17:31:43 +00:00
|
|
|
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
|
2018-07-30 14:04:47 +00:00
|
|
|
load("@io_bazel_rules_docker//container:container.bzl", "container_push")
|
2018-07-07 17:23:19 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2018-07-09 02:40:34 +00:00
|
|
|
srcs = ["main.go"],
|
2018-07-20 21:31:26 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/client",
|
|
|
|
visibility = ["//client:__subpackages__"],
|
2018-07-07 17:23:19 +00:00
|
|
|
deps = [
|
2018-07-20 21:31:26 +00:00
|
|
|
"//client/node:go_default_library",
|
2018-08-08 01:55:04 +00:00
|
|
|
"//client/types:go_default_library",
|
2018-07-19 16:31:50 +00:00
|
|
|
"//shared/cmd:go_default_library",
|
2018-07-14 03:35:15 +00:00
|
|
|
"//shared/debug:go_default_library",
|
2018-07-14 02:15:37 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2018-07-09 02:40:34 +00:00
|
|
|
"@com_github_urfave_cli//:go_default_library",
|
2018-07-21 17:51:18 +00:00
|
|
|
"@com_github_x_cray_logrus_prefixed_formatter//:go_default_library",
|
2018-07-07 17:23:19 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-07-22 17:31:43 +00:00
|
|
|
go_image(
|
|
|
|
name = "image",
|
|
|
|
srcs = ["main.go"],
|
|
|
|
goarch = "amd64",
|
|
|
|
goos = "linux",
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/client",
|
|
|
|
static = "on",
|
2018-08-22 02:59:36 +00:00
|
|
|
tags = ["manual"],
|
2018-07-30 14:04:47 +00:00
|
|
|
visibility = ["//visibility:private"],
|
2018-07-22 17:31:43 +00:00
|
|
|
deps = [
|
|
|
|
"//client/node:go_default_library",
|
2018-08-08 01:55:04 +00:00
|
|
|
"//client/types:go_default_library",
|
2018-07-22 17:31:43 +00:00
|
|
|
"//shared/cmd:go_default_library",
|
|
|
|
"//shared/debug:go_default_library",
|
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
"@com_github_urfave_cli//:go_default_library",
|
|
|
|
"@com_github_x_cray_logrus_prefixed_formatter//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-07-30 14:04:47 +00:00
|
|
|
container_push(
|
|
|
|
name = "push_image",
|
|
|
|
format = "Docker",
|
|
|
|
image = ":image",
|
|
|
|
registry = "gcr.io",
|
|
|
|
repository = "prysmaticlabs/prysm/client",
|
|
|
|
tag = "latest",
|
2018-08-22 02:59:36 +00:00
|
|
|
tags = ["manual"],
|
2018-07-30 14:04:47 +00:00
|
|
|
)
|
|
|
|
|
2018-07-09 02:40:34 +00:00
|
|
|
go_binary(
|
2018-07-20 21:31:26 +00:00
|
|
|
name = "client",
|
2018-07-07 17:23:19 +00:00
|
|
|
embed = [":go_default_library"],
|
2018-07-20 21:31:26 +00:00
|
|
|
visibility = ["//client:__subpackages__"],
|
2018-07-07 17:23:19 +00:00
|
|
|
)
|