2018-07-13 21:15:37 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
2018-07-22 13:31:43 -04:00
|
|
|
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
|
2018-07-30 10:04:47 -04:00
|
|
|
load("@io_bazel_rules_docker//container:container.bzl", "container_push")
|
2018-07-12 06:29:31 +08:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2019-03-01 13:48:05 -06:00
|
|
|
srcs = [
|
|
|
|
"main.go",
|
|
|
|
"usage.go",
|
|
|
|
],
|
2018-07-20 16:31:26 -05:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/beacon-chain",
|
2018-07-12 12:00:37 -05:00
|
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
2018-07-13 21:15:37 -05:00
|
|
|
deps = [
|
|
|
|
"//beacon-chain/node:go_default_library",
|
2018-07-19 11:31:50 -05:00
|
|
|
"//beacon-chain/utils:go_default_library",
|
|
|
|
"//shared/cmd:go_default_library",
|
2018-07-13 22:35:15 -05:00
|
|
|
"//shared/debug:go_default_library",
|
2019-01-09 23:19:33 -05:00
|
|
|
"//shared/version:go_default_library",
|
2018-07-13 21:15:37 -05:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
"@com_github_urfave_cli//:go_default_library",
|
2018-07-21 12:51:18 -05:00
|
|
|
"@com_github_x_cray_logrus_prefixed_formatter//:go_default_library",
|
2018-07-13 21:15:37 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-07-22 13:31:43 -04:00
|
|
|
go_image(
|
|
|
|
name = "image",
|
2019-03-01 13:48:05 -06:00
|
|
|
srcs = [
|
|
|
|
"main.go",
|
|
|
|
"usage.go",
|
|
|
|
],
|
2018-07-22 13:31:43 -04:00
|
|
|
goarch = "amd64",
|
|
|
|
goos = "linux",
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/beacon-chain",
|
|
|
|
static = "on",
|
2018-08-21 19:59:36 -07:00
|
|
|
tags = ["manual"],
|
2018-07-30 10:04:47 -04:00
|
|
|
visibility = ["//visibility:private"],
|
2018-07-22 13:31:43 -04:00
|
|
|
deps = [
|
|
|
|
"//beacon-chain/node:go_default_library",
|
|
|
|
"//beacon-chain/utils:go_default_library",
|
|
|
|
"//shared/cmd:go_default_library",
|
|
|
|
"//shared/debug:go_default_library",
|
2019-01-09 23:19:33 -05:00
|
|
|
"//shared/version:go_default_library",
|
2018-07-22 13:31:43 -04: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-12-30 22:40:39 -05:00
|
|
|
race = "off",
|
2018-07-22 13:31:43 -04:00
|
|
|
)
|
|
|
|
|
2018-07-30 10:04:47 -04:00
|
|
|
container_push(
|
|
|
|
name = "push_image",
|
|
|
|
format = "Docker",
|
|
|
|
image = ":image",
|
|
|
|
registry = "gcr.io",
|
|
|
|
repository = "prysmaticlabs/prysm/beacon-chain",
|
|
|
|
tag = "latest",
|
2018-08-21 19:59:36 -07:00
|
|
|
tags = ["manual"],
|
2018-07-30 10:04:47 -04:00
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
2018-07-13 21:15:37 -05:00
|
|
|
go_binary(
|
|
|
|
name = "beacon-chain",
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
2018-07-12 06:29:31 +08:00
|
|
|
)
|