Skip to content

Commit 30c2139

Browse files
committed
chore: merge branch 'main' into dashboards-improvements
2 parents b6b0eae + a110e8b commit 30c2139

File tree

3 files changed

+43
-6
lines changed

3 files changed

+43
-6
lines changed

scripts/Dockerfile.debug

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Support setting various labels on the final image
2+
ARG COMMIT=""
3+
ARG VERSION=""
4+
ARG BUILDNUM=""
5+
6+
# Build Geth in a stock Go builder container
7+
FROM golang:1.20-alpine as builder
8+
9+
RUN apk add --no-cache gcc musl-dev linux-headers git
10+
11+
# Get dependencies - will also be cached if we won't change go.mod/go.sum
12+
COPY go.mod /go-ethereum/
13+
COPY go.sum /go-ethereum/
14+
RUN cd /go-ethereum && go mod download
15+
16+
ADD . /go-ethereum
17+
18+
RUN cd /go-ethereum && go build -o ./build/bin/geth -gcflags=all='-N -l' -v ./cmd/geth
19+
20+
RUN go install github.com/go-delve/delve/cmd/dlv@latest
21+
# Pull Geth into a second stage deploy alpine container
22+
FROM alpine:latest
23+
24+
RUN apk add --no-cache ca-certificates
25+
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
26+
COPY --from=builder /go/bin/dlv /
27+
EXPOSE 8545 8546 30303 30303/udp 40000
28+
ENTRYPOINT ["/dlv", "--listen=:40000", "--headless=true", "--continue", "--accept-multiclient", "--api-version=2", "exec", "/usr/local/bin/geth"]
29+
# Add some metadata labels to help programatic image consumption
30+
ARG COMMIT=""
31+
ARG VERSION=""
32+
ARG BUILDNUM=""
33+
34+
LABEL commit="$COMMIT" version="$VERSION" buildnum="$BUILDNUM"

scripts/emulate_network.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Available commands:
186186
- build
187187
- -t : Image tag (optional, default: "flashbots/builder:dev")
188188
- -d : Image Build directory (optional, default: "..")
189-
- -f : Build dockerfile path (optional, default: "../Dockerfile")
189+
- -f : Build dockerfile path (optional, default: "./Dockerfile.debug")
190190
- run
191191
- -t : Image tag (optional, default: "flashbots/builder:dev")
192192
- -n : Enclave name (optional, default: "explorer")
@@ -214,7 +214,7 @@ func main() {
214214
switch os.Args[1] {
215215
case "build":
216216
buildDir := flagSet.String("d", "..", "Build directory.")
217-
buildDockerfilePath := flagSet.String("f", "../Dockerfile", "Build dockerfile path.")
217+
buildDockerfilePath := flagSet.String("f", "./Dockerfile.debug", "Build dockerfile path.")
218218
flagSet.Parse(os.Args[2:])
219219
build(*imageTag, *buildDir, *buildDockerfilePath)
220220
case "run":

scripts/kurtosis/network_params.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@
5151
},
5252
"mev_params": {
5353
"mev_flood_seconds_per_bundle": 13,
54-
"launch_custom_flood": true,
5554
"mev_flood_extra_args": [
56-
"--txsPerBundle=100"
55+
"--txsPerBundle=250"
5756
],
5857
"mev_flood_image": "flashbots/mev-flood:0.0.9",
5958
"mev_relay_image": "flashbots/mev-boost-relay:0.27",
@@ -66,16 +65,20 @@
6665
"additional_services": [
6766
"tx_spammer",
6867
"blob_spammer",
68+
"custom_flood",
6969
"beacon_metrics_gazer",
7070
"dora",
7171
"prometheus_grafana"
7272
],
7373
"tx_spammer_params": {
7474
"tx_spammer_extra_args": [
75-
"--txcount=100"
75+
"--txcount=250"
7676
]
7777
},
78+
"custom_flood_params": {
79+
"interval_between_transactions": 0.05
80+
},
7881
"grafana_additional_dashboards": [
7982
"github.com/flashbots/builder-startup-script/data/grafana"
8083
]
81-
}
84+
}

0 commit comments

Comments
 (0)