From 75bf3602985bde041304631cd3f4a0b88b505cf7 Mon Sep 17 00:00:00 2001 From: Daniel Mancia <21249320+dmanc@users.noreply.github.com> Date: Mon, 30 Dec 2024 17:34:11 -0600 Subject: [PATCH] rename dockerfile --- docker-bake.hcl | 16 ++++++++-------- tools/traffic/config/config.go | 4 ++++ tools/traffic/config/flags.go | 10 ++-------- ....Dockerfile => trafficgenerator-v2.Dockerfile | 0 4 files changed, 14 insertions(+), 16 deletions(-) rename trafficgenerator2.Dockerfile => trafficgenerator-v2.Dockerfile (100%) diff --git a/docker-bake.hcl b/docker-bake.hcl index 6fa0c24f2..2c7f04e4b 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -203,19 +203,19 @@ target "traffic-generator-internal" { ] } -target "traffic-generator2" { +target "traffic-generator-v2" { context = "." - dockerfile = "./trafficgenerator2.Dockerfile" + dockerfile = "./trafficgenerator-v2.Dockerfile" target = "generator2" - tags = ["${REGISTRY}/${REPO}/traffic-generator2:${BUILD_TAG}"] + tags = ["${REGISTRY}/${REPO}/traffic-generator-v2:${BUILD_TAG}"] } -target "traffic-generator2-internal" { - inherits = ["traffic-generator2"] +target "traffic-generator-v2-internal" { + inherits = ["traffic-generator-v2"] tags = [ - "${REGISTRY}/eigenda-traffic-generator2:${BUILD_TAG}", - "${REGISTRY}/eigenda-traffic-generator2:${GIT_SHA}", - "${REGISTRY}/eigenda-traffic-generator2:sha-${GIT_SHORT_SHA}" + "${REGISTRY}/eigenda-traffic-generator-v2:${BUILD_TAG}", + "${REGISTRY}/eigenda-traffic-generator-v2:${GIT_SHA}", + "${REGISTRY}/eigenda-traffic-generator-v2:sha-${GIT_SHORT_SHA}" ] } diff --git a/tools/traffic/config/config.go b/tools/traffic/config/config.go index 9fbb38d36..c1cd26bd6 100644 --- a/tools/traffic/config/config.go +++ b/tools/traffic/config/config.go @@ -42,6 +42,10 @@ func NewConfig(ctx *cli.Context) (*Config, error) { return nil, err } customQuorums := ctx.GlobalIntSlice(CustomQuorumNumbersFlag.Name) + if len(customQuorums) == 0 { + return nil, errors.New("no custom quorum numbers provided") + } + customQuorumsUint8 := make([]uint8, len(customQuorums)) for i, q := range customQuorums { if q < 0 || q > 255 { diff --git a/tools/traffic/config/flags.go b/tools/traffic/config/flags.go index 1b9709f78..fc0ec776d 100644 --- a/tools/traffic/config/flags.go +++ b/tools/traffic/config/flags.go @@ -4,9 +4,6 @@ import ( "time" "github.com/Layr-Labs/eigenda/common" - "github.com/Layr-Labs/eigenda/common/geth" - "github.com/Layr-Labs/eigenda/core/thegraph" - "github.com/Layr-Labs/eigenda/encoding/kzg" "github.com/Layr-Labs/eigenda/indexer" "github.com/urfave/cli" ) @@ -132,7 +129,7 @@ var ( TheGraphUrlFlag = cli.StringFlag{ Name: common.PrefixFlag(FlagPrefix, "the-graph-url"), Usage: "URL of the subgraph instance.", - Required: true, + Required: false, EnvVar: common.PrefixEnvVar(envPrefix, "THE_GRAPH_URL"), } TheGraphPullIntervalFlag = cli.DurationFlag{ @@ -224,7 +221,6 @@ var ( var requiredFlags = []cli.Flag{ HostnameFlag, GrpcPortFlag, - TheGraphUrlFlag, } var optionalFlags = []cli.Flag{ @@ -242,6 +238,7 @@ var optionalFlags = []cli.Flag{ RequiredDownloadsFlag, DisableTLSFlag, MetricsHTTPPortFlag, + TheGraphUrlFlag, TheGraphPullIntervalFlag, TheGraphRetriesFlag, VerifierIntervalFlag, @@ -260,9 +257,6 @@ var Flags []cli.Flag func init() { Flags = append(requiredFlags, optionalFlags...) - Flags = append(Flags, kzg.CLIFlags(envPrefix)...) Flags = append(Flags, common.LoggerCLIFlags(envPrefix, FlagPrefix)...) - Flags = append(Flags, geth.EthClientFlags(envPrefix)...) Flags = append(Flags, indexer.CLIFlags(envPrefix)...) - Flags = append(Flags, thegraph.CLIFlags(envPrefix)...) } diff --git a/trafficgenerator2.Dockerfile b/trafficgenerator-v2.Dockerfile similarity index 100% rename from trafficgenerator2.Dockerfile rename to trafficgenerator-v2.Dockerfile