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")
|
2023-12-13 23:31:58 +00:00
|
|
|
load("//tools:prysm_image.bzl", "prysm_image_upload")
|
2019-05-19 14:52:17 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = ["main.go"],
|
2024-02-15 05:46:47 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v5/tools/eth1exporter",
|
2019-05-19 14:52:17 +00:00
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
2021-09-16 09:46:29 +00:00
|
|
|
"//runtime/maxprocs:go_default_library",
|
2019-05-19 14:52:17 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//ethclient:go_default_library",
|
2019-05-20 18:05:04 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//params:go_default_library",
|
2020-04-13 04:11:09 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2019-05-19 14:52:17 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "eth1exporter",
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
2023-12-13 23:31:58 +00:00
|
|
|
prysm_image_upload(
|
|
|
|
name = "push_images",
|
2020-11-10 03:01:56 +00:00
|
|
|
binary = ":eth1exporter",
|
2023-12-13 23:31:58 +00:00
|
|
|
entrypoint = ["/eth1exporter"],
|
2024-03-14 18:42:01 +00:00
|
|
|
repository = "registry.gitlab.com/pulsechaincom/prysm-pulse/eth1monitor",
|
2023-12-13 23:31:58 +00:00
|
|
|
symlinks = {
|
|
|
|
# Backwards compatibility for images that depended on the old filepath.
|
|
|
|
"/app/tools/eth1exporter/eth1exporter": "/eth1exporter",
|
2019-07-20 04:55:09 +00:00
|
|
|
},
|
2019-05-19 14:52:17 +00:00
|
|
|
)
|