2018-11-19 10:54:35 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
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")
|
2018-11-19 10:54:35 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = ["relaynode.go"],
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/tools/relaynode",
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
2019-01-10 04:19:33 +00:00
|
|
|
"//shared/version:go_default_library",
|
2018-11-19 10:54:35 +00:00
|
|
|
"@com_github_ipfs_go_log//:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p//:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p_circuit//:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p_crypto//:go_default_library",
|
|
|
|
"@com_github_multiformats_go_multiaddr//:go_default_library",
|
2019-06-13 14:53:42 +00:00
|
|
|
"@org_uber_go_automaxprocs//:go_default_library",
|
2018-11-19 10:54:35 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_image(
|
|
|
|
name = "image",
|
|
|
|
srcs = ["relaynode.go"],
|
2019-06-13 14:53:42 +00:00
|
|
|
goarch = "amd64",
|
|
|
|
goos = "linux",
|
2018-11-19 10:54:35 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/tools/relaynode",
|
2019-06-13 14:53:42 +00:00
|
|
|
pure = "on",
|
|
|
|
race = "off",
|
2018-11-19 10:54:35 +00:00
|
|
|
static = "on",
|
|
|
|
tags = ["manual"],
|
2019-06-13 14:53:42 +00:00
|
|
|
visibility = ["//visibility:private"],
|
2018-11-19 10:54:35 +00:00
|
|
|
deps = [
|
2019-01-10 04:19:33 +00:00
|
|
|
"//shared/version:go_default_library",
|
2018-11-19 10:54:35 +00:00
|
|
|
"@com_github_ipfs_go_log//:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p//:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p_circuit//:go_default_library",
|
|
|
|
"@com_github_libp2p_go_libp2p_crypto//:go_default_library",
|
|
|
|
"@com_github_multiformats_go_multiaddr//:go_default_library",
|
2019-06-13 14:53:42 +00:00
|
|
|
"@org_uber_go_automaxprocs//:go_default_library",
|
2018-11-19 10:54:35 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "relaynode",
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
2019-07-20 04:55:09 +00:00
|
|
|
|
|
|
|
container_bundle(
|
|
|
|
name = "push_images",
|
|
|
|
images = {
|
|
|
|
"gcr.io/prysmaticlabs/prysm/relaynode:latest": ":image",
|
|
|
|
"gcr.io/prysmaticlabs/prysm/relaynode:{DOCKER_TAG}": ":image",
|
|
|
|
},
|
|
|
|
tags = ["manual"],
|
|
|
|
)
|