2020-05-05 00:22:26 -07:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary")
|
2019-05-19 10:52:17 -04:00
|
|
|
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
|
2019-07-20 00:55:09 -04:00
|
|
|
load("@io_bazel_rules_docker//container:container.bzl", "container_bundle")
|
2019-07-20 20:40:03 -04:00
|
|
|
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
|
2019-05-19 10:52:17 -04:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = ["main.go"],
|
2023-03-17 11:52:56 -07:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/tools/eth1exporter",
|
2019-05-19 10:52:17 -04:00
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
2021-09-16 04:46:29 -05:00
|
|
|
"//runtime/maxprocs:go_default_library",
|
2019-05-19 10:52:17 -04:00
|
|
|
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//ethclient:go_default_library",
|
2019-05-20 14:05:04 -04:00
|
|
|
"@com_github_ethereum_go_ethereum//params:go_default_library",
|
2020-04-12 21:11:09 -07:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2019-05-19 10:52:17 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "eth1exporter",
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_image(
|
|
|
|
name = "image",
|
2019-12-18 12:52:26 -08:00
|
|
|
base = "//tools:go_image",
|
2020-11-09 19:01:56 -08:00
|
|
|
binary = ":eth1exporter",
|
2019-05-19 10:52:17 -04:00
|
|
|
tags = ["manual"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
2019-07-20 00:55:09 -04:00
|
|
|
container_bundle(
|
2019-07-20 20:40:03 -04:00
|
|
|
name = "image_bundle",
|
2019-07-20 00:55:09 -04:00
|
|
|
images = {
|
|
|
|
"gcr.io/prysmaticlabs/prysm/eth1monitor:latest": ":image",
|
|
|
|
"gcr.io/prysmaticlabs/prysm/eth1monitor:{DOCKER_TAG}": ":image",
|
|
|
|
},
|
2019-05-19 10:52:17 -04:00
|
|
|
tags = ["manual"],
|
|
|
|
)
|
2019-07-20 20:40:03 -04:00
|
|
|
|
|
|
|
docker_push(
|
|
|
|
name = "push_images",
|
|
|
|
bundle = ":image_bundle",
|
|
|
|
tags = ["manual"],
|
|
|
|
)
|