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")
|
2019-03-07 16:14:57 +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-03-07 16:14:57 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
2019-04-14 21:53:34 +00:00
|
|
|
"allocations.go",
|
2019-03-07 16:14:57 +00:00
|
|
|
"db.go",
|
2019-05-12 20:38:37 +00:00
|
|
|
"keyChecker.go",
|
2019-03-07 16:14:57 +00:00
|
|
|
"logger.go",
|
|
|
|
"main.go",
|
|
|
|
"server.go",
|
|
|
|
"watchtower.go",
|
|
|
|
],
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/tools/cluster-pk-manager/server",
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
|
|
|
"//contracts/deposit-contract:go_default_library",
|
|
|
|
"//proto/cluster:go_default_library",
|
2019-04-14 21:53:34 +00:00
|
|
|
"//shared/bls:go_default_library",
|
2019-05-12 20:38:37 +00:00
|
|
|
"//shared/bytesutil:go_default_library",
|
2020-07-03 18:49:16 +00:00
|
|
|
"//shared/depositutil:go_default_library",
|
2019-03-07 16:14:57 +00:00
|
|
|
"//shared/keystore:go_default_library",
|
2020-07-11 00:57:43 +00:00
|
|
|
"//shared/maxprocs:go_default_library",
|
2020-06-25 16:12:59 +00:00
|
|
|
"//shared/params:go_default_library",
|
2019-03-07 16:14:57 +00:00
|
|
|
"//shared/prometheus:go_default_library",
|
2019-11-13 16:31:57 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//:go_default_library",
|
2019-03-07 16:14:57 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//accounts/abi/bind:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
2019-11-13 16:31:57 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//core/types:go_default_library",
|
2019-03-07 16:14:57 +00:00
|
|
|
"@com_github_ethereum_go_ethereum//crypto:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//ethclient:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//rpc:go_default_library",
|
2019-04-14 21:53:34 +00:00
|
|
|
"@com_github_gogo_protobuf//proto:go_default_library",
|
2019-08-02 02:27:38 +00:00
|
|
|
"@com_github_pkg_errors//:go_default_library",
|
2019-03-07 16:14:57 +00:00
|
|
|
"@com_github_prometheus_client_golang//prometheus:go_default_library",
|
|
|
|
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
|
2020-01-24 19:34:24 +00:00
|
|
|
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
2019-03-07 16:14:57 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2020-03-24 20:00:54 +00:00
|
|
|
"@io_etcd_go_bbolt//:go_default_library",
|
2019-03-07 16:14:57 +00:00
|
|
|
"@io_k8s_api//core/v1:go_default_library",
|
|
|
|
"@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library",
|
|
|
|
"@io_k8s_client_go//kubernetes:go_default_library",
|
|
|
|
"@io_k8s_client_go//rest:go_default_library",
|
2019-05-12 20:38:37 +00:00
|
|
|
"@io_opencensus_go//plugin/ocgrpc:go_default_library",
|
2019-03-07 16:14:57 +00:00
|
|
|
"@org_golang_google_grpc//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_binary(
|
|
|
|
name = "server",
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2019-06-30 16:00:22 +00:00
|
|
|
size = "small",
|
2019-03-07 16:14:57 +00:00
|
|
|
srcs = ["server_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = ["//proto/cluster:go_default_library"],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_image(
|
|
|
|
name = "image",
|
2019-12-18 20:52:26 +00:00
|
|
|
base = "//tools:cc_image",
|
2020-11-10 03:01:56 +00:00
|
|
|
binary = ":server",
|
2019-05-12 20:38:37 +00:00
|
|
|
tags = ["manual"],
|
2019-03-07 16:14:57 +00:00
|
|
|
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/cluster-pk-manager/server:latest": ":image",
|
|
|
|
"gcr.io/prysmaticlabs/prysm/cluster-pk-manager/server:{DOCKER_TAG}": ":image",
|
|
|
|
},
|
2019-03-07 16:14:57 +00:00
|
|
|
tags = ["manual"],
|
|
|
|
)
|
2019-07-21 00:40:03 +00:00
|
|
|
|
|
|
|
docker_push(
|
|
|
|
name = "push_images",
|
|
|
|
bundle = ":image_bundle",
|
|
|
|
tags = ["manual"],
|
|
|
|
)
|