Skip to content

Commit

Permalink
rename dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanc committed Dec 30, 2024
1 parent fdfb397 commit 75bf360
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
16 changes: 8 additions & 8 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
]
}

Expand Down
4 changes: 4 additions & 0 deletions tools/traffic/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 2 additions & 8 deletions tools/traffic/config/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -224,7 +221,6 @@ var (
var requiredFlags = []cli.Flag{
HostnameFlag,
GrpcPortFlag,
TheGraphUrlFlag,
}

var optionalFlags = []cli.Flag{
Expand All @@ -242,6 +238,7 @@ var optionalFlags = []cli.Flag{
RequiredDownloadsFlag,
DisableTLSFlag,
MetricsHTTPPortFlag,
TheGraphUrlFlag,
TheGraphPullIntervalFlag,
TheGraphRetriesFlag,
VerifierIntervalFlag,
Expand All @@ -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)...)
}
File renamed without changes.

0 comments on commit 75bf360

Please sign in to comment.