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",
|
2019-03-01 19:48:05 +00:00
|
|
|
srcs = [
|
|
|
|
"main.go",
|
|
|
|
"usage.go",
|
|
|
|
],
|
2018-08-22 19:15:21 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/validator",
|
|
|
|
visibility = ["//validator:__subpackages__"],
|
2018-07-07 17:23:19 +00:00
|
|
|
deps = [
|
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",
|
2019-01-10 04:19:33 +00:00
|
|
|
"//shared/version:go_default_library",
|
2019-01-31 11:57:57 +00:00
|
|
|
"//validator/accounts:go_default_library",
|
2018-08-22 19:15:21 +00:00
|
|
|
"//validator/node:go_default_library",
|
|
|
|
"//validator/types: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",
|
2019-03-01 19:48:05 +00:00
|
|
|
srcs = [
|
|
|
|
"main.go",
|
|
|
|
"usage.go",
|
|
|
|
],
|
2018-07-22 17:31:43 +00:00
|
|
|
goarch = "amd64",
|
|
|
|
goos = "linux",
|
2018-08-22 19:15:21 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/validator",
|
2019-02-03 22:44:48 +00:00
|
|
|
race = "off",
|
2019-02-15 18:31:07 +00:00
|
|
|
static = "on",
|
2019-02-19 06:17:27 +00:00
|
|
|
pure = "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 = [
|
|
|
|
"//shared/cmd:go_default_library",
|
|
|
|
"//shared/debug:go_default_library",
|
2019-02-03 22:44:48 +00:00
|
|
|
"//shared/version:go_default_library",
|
2019-02-03 14:07:01 +00:00
|
|
|
"//validator/accounts:go_default_library",
|
2018-08-22 19:15:21 +00:00
|
|
|
"//validator/node:go_default_library",
|
|
|
|
"//validator/types:go_default_library",
|
2018-07-22 17:31:43 +00:00
|
|
|
"@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",
|
2018-08-22 19:15:21 +00:00
|
|
|
repository = "prysmaticlabs/prysm/validator",
|
2018-07-30 14:04:47 +00:00
|
|
|
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-08-22 19:15:21 +00:00
|
|
|
name = "validator",
|
2018-07-07 17:23:19 +00:00
|
|
|
embed = [":go_default_library"],
|
2019-02-19 06:17:27 +00:00
|
|
|
pure = "on", # Enabled unless there is a valid reason to include cgo dep.
|
2018-08-22 19:15:21 +00:00
|
|
|
visibility = ["//validator:__subpackages__"],
|
2018-07-07 17:23:19 +00:00
|
|
|
)
|