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")
|
2018-11-19 18:34:20 +00:00
|
|
|
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
|
2019-07-20 04:55:09 +00:00
|
|
|
load("@io_bazel_rules_docker//container:container.bzl", "container_bundle")
|
2019-07-21 00:40:03 +00:00
|
|
|
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
|
2018-11-10 17:32:45 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = ["bootnode.go"],
|
2023-03-17 18:52:56 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/tools/bootnode",
|
2018-11-10 17:32:45 +00:00
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
2021-09-18 17:26:11 +00:00
|
|
|
"//async:go_default_library",
|
2021-09-27 16:19:20 +00:00
|
|
|
"//beacon-chain/core/signing:go_default_library",
|
2021-09-21 19:59:25 +00:00
|
|
|
"//config/params:go_default_library",
|
2022-07-01 15:34:11 +00:00
|
|
|
"//crypto/ecdsa:go_default_library",
|
2021-09-23 15:23:37 +00:00
|
|
|
"//encoding/bytesutil:go_default_library",
|
2021-09-17 21:55:24 +00:00
|
|
|
"//io/logs:go_default_library",
|
2021-09-16 19:12:27 +00:00
|
|
|
"//network:go_default_library",
|
2021-07-28 21:23:44 +00:00
|
|
|
"//proto/prysm/v1alpha1:go_default_library",
|
2021-09-16 09:46:29 +00:00
|
|
|
"//runtime/maxprocs:go_default_library",
|
|
|
|
"//runtime/version:go_default_library",
|
2020-10-20 04:05:48 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//crypto:go_default_library",
|
2019-09-17 23:24:08 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//log:go_default_library",
|
2019-09-06 19:20:20 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//p2p/discover:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//p2p/enode:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//p2p/enr:go_default_library",
|
2022-10-07 07:24:51 +00:00
|
|
|
"@com_github_libp2p_go_libp2p//core/crypto:go_default_library",
|
2019-09-06 19:20:20 +00:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2020-04-20 19:02:09 +00:00
|
|
|
"@com_github_prometheus_client_golang//prometheus:go_default_library",
|
|
|
|
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
|
2020-04-14 20:27:03 +00:00
|
|
|
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
|
2019-09-01 03:05:36 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2018-11-10 17:32:45 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-11-19 18:34:20 +00:00
|
|
|
go_image(
|
|
|
|
name = "image",
|
2020-05-07 10:50:03 +00:00
|
|
|
base = "//tools:cc_image",
|
2020-11-10 03:01:56 +00:00
|
|
|
binary = ":bootnode",
|
2018-11-19 18:34:20 +00:00
|
|
|
tags = ["manual"],
|
2019-05-10 15:56:30 +00:00
|
|
|
visibility = ["//visibility:private"],
|
2018-11-19 18:34:20 +00:00
|
|
|
)
|
|
|
|
|
2018-11-10 17:32:45 +00:00
|
|
|
go_binary(
|
|
|
|
name = "bootnode",
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
2019-07-20 04:55:09 +00:00
|
|
|
|
|
|
|
container_bundle(
|
2019-07-21 00:40:03 +00:00
|
|
|
name = "image_bundle",
|
2019-07-20 04:55:09 +00:00
|
|
|
images = {
|
|
|
|
"gcr.io/prysmaticlabs/prysm/bootnode:latest": ":image",
|
|
|
|
"gcr.io/prysmaticlabs/prysm/bootnode:{DOCKER_TAG}": ":image",
|
|
|
|
},
|
|
|
|
tags = ["manual"],
|
|
|
|
)
|
2019-07-21 00:40:03 +00:00
|
|
|
|
|
|
|
docker_push(
|
|
|
|
name = "push_images",
|
|
|
|
bundle = ":image_bundle",
|
|
|
|
tags = ["manual"],
|
|
|
|
)
|
2019-08-18 19:54:20 +00:00
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = ["bootnode_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
2019-09-06 19:20:20 +00:00
|
|
|
flaky = True,
|
2019-08-18 19:54:20 +00:00
|
|
|
deps = [
|
2022-07-01 15:34:11 +00:00
|
|
|
"//crypto/ecdsa:go_default_library",
|
2021-09-16 19:12:27 +00:00
|
|
|
"//network:go_default_library",
|
2021-09-16 09:46:29 +00:00
|
|
|
"//runtime/maxprocs:go_default_library",
|
2021-09-23 18:53:46 +00:00
|
|
|
"//testing/assert:go_default_library",
|
|
|
|
"//testing/require:go_default_library",
|
2019-09-06 19:20:20 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//p2p/discover:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//p2p/enode:go_default_library",
|
2022-10-07 07:24:51 +00:00
|
|
|
"@com_github_libp2p_go_libp2p//core/crypto:go_default_library",
|
2020-08-25 15:23:06 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2019-08-18 19:54:20 +00:00
|
|
|
],
|
|
|
|
)
|