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")
|
2019-05-19 14:52:17 +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")
|
2019-05-19 14:52:17 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = ["main.go"],
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/tools/eth1exporter",
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
2020-07-11 00:57:43 +00:00
|
|
|
"//shared/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"],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_image(
|
|
|
|
name = "image",
|
2019-12-18 20:52:26 +00:00
|
|
|
base = "//tools:go_image",
|
2020-11-10 03:01:56 +00:00
|
|
|
binary = ":eth1exporter",
|
2019-05-19 14:52:17 +00:00
|
|
|
tags = ["manual"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
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/eth1monitor:latest": ":image",
|
|
|
|
"gcr.io/prysmaticlabs/prysm/eth1monitor:{DOCKER_TAG}": ":image",
|
|
|
|
},
|
2019-05-19 14:52:17 +00:00
|
|
|
tags = ["manual"],
|
|
|
|
)
|
2019-07-21 00:40:03 +00:00
|
|
|
|
|
|
|
docker_push(
|
|
|
|
name = "push_images",
|
|
|
|
bundle = ":image_bundle",
|
|
|
|
tags = ["manual"],
|
|
|
|
)
|