2021-06-30 19:22:09 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
|
2023-09-28 15:24:16 +00:00
|
|
|
load("//tools:prysm_image.bzl", "prysm_image_upload")
|
2021-03-02 19:36:03 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"log.go",
|
|
|
|
"main.go",
|
|
|
|
"usage.go",
|
|
|
|
],
|
2024-02-15 05:46:47 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v5/cmd/beacon-chain",
|
2021-03-02 19:36:03 +00:00
|
|
|
visibility = ["//beacon-chain:__subpackages__"],
|
|
|
|
deps = [
|
2022-06-01 15:12:15 +00:00
|
|
|
"//beacon-chain/builder:go_default_library",
|
2021-03-02 19:36:03 +00:00
|
|
|
"//beacon-chain/node:go_default_library",
|
2021-09-21 18:11:16 +00:00
|
|
|
"//cmd:go_default_library",
|
2021-10-18 17:48:05 +00:00
|
|
|
"//cmd/beacon-chain/blockchain:go_default_library",
|
2021-03-03 17:05:37 +00:00
|
|
|
"//cmd/beacon-chain/db:go_default_library",
|
2022-08-01 14:43:47 +00:00
|
|
|
"//cmd/beacon-chain/execution:go_default_library",
|
2021-03-02 19:36:03 +00:00
|
|
|
"//cmd/beacon-chain/flags:go_default_library",
|
2022-06-24 15:54:08 +00:00
|
|
|
"//cmd/beacon-chain/jwt:go_default_library",
|
2023-11-21 18:44:38 +00:00
|
|
|
"//cmd/beacon-chain/storage:go_default_library",
|
2024-01-23 07:54:30 +00:00
|
|
|
"//cmd/beacon-chain/sync/backfill:go_default_library",
|
2024-01-26 04:37:41 +00:00
|
|
|
"//cmd/beacon-chain/sync/backfill/flags:go_default_library",
|
2022-03-28 21:01:55 +00:00
|
|
|
"//cmd/beacon-chain/sync/checkpoint:go_default_library",
|
2022-03-30 22:23:34 +00:00
|
|
|
"//cmd/beacon-chain/sync/genesis:go_default_library",
|
2021-09-15 01:18:39 +00:00
|
|
|
"//config/features:go_default_library",
|
2021-09-17 21:55:24 +00:00
|
|
|
"//io/file:go_default_library",
|
|
|
|
"//io/logs:go_default_library",
|
2021-09-14 20:59:51 +00:00
|
|
|
"//monitoring/journald:go_default_library",
|
2021-09-16 09:46:29 +00:00
|
|
|
"//runtime/debug:go_default_library",
|
2022-05-20 08:12:52 +00:00
|
|
|
"//runtime/fdlimits:go_default_library",
|
2022-07-27 17:20:54 +00:00
|
|
|
"//runtime/logging/logrus-prefixed-formatter:go_default_library",
|
2021-09-16 09:46:29 +00:00
|
|
|
"//runtime/maxprocs:go_default_library",
|
|
|
|
"//runtime/version:go_default_library",
|
2021-03-02 19:36:03 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//log:go_default_library",
|
|
|
|
"@com_github_ipfs_go_log_v2//:go_default_library",
|
|
|
|
"@com_github_joonix_log//:go_default_library",
|
2024-03-15 11:08:19 +00:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2021-03-02 19:36:03 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
"@com_github_urfave_cli_v2//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "beacon-chain",
|
|
|
|
embed = [":go_default_library"],
|
2023-11-08 13:33:26 +00:00
|
|
|
pgoprofile = select({
|
|
|
|
"//:pgo_enabled": "pprof.beacon-chain.samples.cpu.pb.gz",
|
|
|
|
"//conditions:default": None,
|
|
|
|
}),
|
2021-03-02 19:36:03 +00:00
|
|
|
visibility = [
|
|
|
|
"//beacon-chain:__subpackages__",
|
2021-09-15 14:42:05 +00:00
|
|
|
"//testing/endtoend:__pkg__",
|
2021-03-02 19:36:03 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["usage_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
visibility = ["//beacon-chain:__pkg__"],
|
|
|
|
deps = [
|
2021-09-15 01:18:39 +00:00
|
|
|
"//config/features:go_default_library",
|
2021-03-02 19:36:03 +00:00
|
|
|
"@com_github_urfave_cli_v2//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
2023-09-28 15:24:16 +00:00
|
|
|
|
|
|
|
prysm_image_upload(
|
2023-12-13 23:31:58 +00:00
|
|
|
name = "push_images",
|
2023-09-28 15:24:16 +00:00
|
|
|
binary = ":beacon-chain",
|
|
|
|
entrypoint = ["/beacon-chain"],
|
2024-03-14 18:42:01 +00:00
|
|
|
repository = "registry.gitlab.com/pulsechaincom/prysm-pulse/beacon-chain",
|
2023-09-28 15:24:16 +00:00
|
|
|
symlinks = {
|
2023-12-13 23:31:58 +00:00
|
|
|
# Backwards compatibility for images that depended on the old filepath.
|
2023-09-28 15:24:16 +00:00
|
|
|
"/app/cmd/beacon-chain/beacon-chain": "/beacon-chain",
|
|
|
|
},
|
|
|
|
)
|