2020-05-05 07:22:26 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_test")
|
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"],
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/tools/bootnode",
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
2020-04-14 20:27:03 +00:00
|
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
2020-04-18 05:06:06 +00:00
|
|
|
"//shared/iputils:go_default_library",
|
2020-04-11 20:12:48 +00:00
|
|
|
"//shared/logutil:go_default_library",
|
2020-04-14 20:27:03 +00:00
|
|
|
"//shared/params:go_default_library",
|
2020-04-20 19:02:09 +00:00
|
|
|
"//shared/runutil:go_default_library",
|
2019-01-10 04:19:33 +00:00
|
|
|
"//shared/version:go_default_library",
|
2019-08-21 15:30:22 +00:00
|
|
|
"@com_github_btcsuite_btcd//btcec: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",
|
2019-09-23 17:24:16 +00:00
|
|
|
"@com_github_ipfs_go_datastore//:go_default_library",
|
|
|
|
"@com_github_ipfs_go_datastore//sync:go_default_library",
|
|
|
|
"@com_github_ipfs_go_log//:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p//:go_default_library",
|
2019-08-21 15:30:22 +00:00
|
|
|
"@com_github_libp2p_go_libp2p_core//crypto:go_default_library",
|
2019-09-23 17:24:16 +00:00
|
|
|
"@com_github_libp2p_go_libp2p_kad_dht//:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p_kad_dht//opts:go_default_library",
|
|
|
|
"@com_github_multiformats_go_multiaddr//: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",
|
|
|
|
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
2019-09-01 03:05:36 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2019-06-13 14:53:42 +00:00
|
|
|
"@org_uber_go_automaxprocs//:go_default_library",
|
2018-11-10 17:32:45 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-11-19 18:34:20 +00:00
|
|
|
go_image(
|
|
|
|
name = "image",
|
|
|
|
srcs = ["bootnode.go"],
|
2019-12-18 20:52:26 +00:00
|
|
|
base = "//tools:go_image",
|
2019-05-10 15:56:30 +00:00
|
|
|
goarch = "amd64",
|
|
|
|
goos = "linux",
|
2018-11-19 18:34:20 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/tools/bootnode",
|
2019-05-10 15:56:30 +00:00
|
|
|
pure = "on",
|
|
|
|
race = "off",
|
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
|
|
|
deps = [
|
2020-04-14 20:27:03 +00:00
|
|
|
"//proto/beacon/p2p/v1:go_default_library",
|
2020-04-11 20:12:48 +00:00
|
|
|
"//shared/logutil:go_default_library",
|
2020-04-18 05:06:06 +00:00
|
|
|
"//shared/params:go_default_library",
|
2020-04-20 19:02:09 +00:00
|
|
|
"//shared/runutil:go_default_library",
|
|
|
|
"//shared/iputils:go_default_library",
|
2019-01-10 04:19:33 +00:00
|
|
|
"//shared/version:go_default_library",
|
2019-08-21 15:30:22 +00:00
|
|
|
"@com_github_btcsuite_btcd//btcec: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",
|
2019-09-23 17:24:16 +00:00
|
|
|
"@com_github_ipfs_go_datastore//:go_default_library",
|
|
|
|
"@com_github_ipfs_go_datastore//sync:go_default_library",
|
|
|
|
"@com_github_ipfs_go_log//:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p//:go_default_library",
|
2019-08-21 15:30:22 +00:00
|
|
|
"@com_github_libp2p_go_libp2p_core//crypto:go_default_library",
|
2019-09-23 17:24:16 +00:00
|
|
|
"@com_github_libp2p_go_libp2p_kad_dht//:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p_kad_dht//opts:go_default_library",
|
|
|
|
"@com_github_multiformats_go_multiaddr//: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",
|
|
|
|
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
2019-09-01 03:05:36 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2019-06-13 14:53:42 +00:00
|
|
|
"@org_uber_go_automaxprocs//:go_default_library",
|
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 = [
|
|
|
|
"//shared/iputils:go_default_library",
|
2019-08-21 15:30:22 +00:00
|
|
|
"@com_github_btcsuite_btcd//btcec: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",
|
2019-08-21 15:30:22 +00:00
|
|
|
"@com_github_libp2p_go_libp2p_core//crypto:go_default_library",
|
2019-08-18 19:54:20 +00:00
|
|
|
"@org_uber_go_automaxprocs//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|