@@ -22,11 +22,11 @@ func (r *RollupBoost) Run(service *service, ctx *ExContext) {
22
22
WithTag ("0.4rc1" ).
23
23
WithArgs (
24
24
"--rpc-port" , `{{Port "authrpc" 8551}}` ,
25
- "--l2-jwt-path" , "{{.Dir}} /jwtsecret" ,
25
+ "--l2-jwt-path" , "/data /jwtsecret" ,
26
26
"--l2-url" , Connect (r .ELNode , "authrpc" ),
27
- "--builder-jwt-path" , "{{.Dir}} /jwtsecret" ,
27
+ "--builder-jwt-path" , "/data /jwtsecret" ,
28
28
"--builder-url" , r .Builder ,
29
- )
29
+ ). WithArtifact ( "/data/jwtsecret" , "jwtsecret" )
30
30
}
31
31
32
32
func (r * RollupBoost ) Name () string {
@@ -82,12 +82,12 @@ func (o *OpNode) Run(service *service, ctx *ExContext) {
82
82
"--l1.epoch-poll-interval" , "12s" ,
83
83
"--l1.http-poll-interval" , "6s" ,
84
84
"--l2" , Connect (o .L2Node , "authrpc" ),
85
- "--l2.jwt-secret" , "{{.Dir}} /jwtsecret" ,
85
+ "--l2.jwt-secret" , "/data /jwtsecret" ,
86
86
"--sequencer.enabled" ,
87
87
"--sequencer.l1-confs" , "0" ,
88
88
"--verifier.l1-confs" , "0" ,
89
89
"--p2p.sequencer.key" , "8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba" ,
90
- "--rollup.config" , "{{.Dir}} /rollup.json" ,
90
+ "--rollup.config" , "/data /rollup.json" ,
91
91
"--rpc.addr" , "0.0.0.0" ,
92
92
"--rpc.port" , `{{Port "http" 8549}}` ,
93
93
"--p2p.listen.ip" , "0.0.0.0" ,
@@ -100,8 +100,11 @@ func (o *OpNode) Run(service *service, ctx *ExContext) {
100
100
"--metrics.port" , `{{Port "metrics" 7300}}` ,
101
101
"--pprof.enabled" ,
102
102
"--rpc.enable-admin" ,
103
- "--safedb.path" , "{{.Dir}}/db" ,
104
- )
103
+ "--safedb.path" , "/data_db" ,
104
+ ).
105
+ WithArtifact ("/data/jwtsecret" , "jwtsecret" ).
106
+ WithArtifact ("/data/rollup.json" , "rollup.json" ).
107
+ WithVolume ("data" , "/data_db" )
105
108
}
106
109
107
110
func (o * OpNode ) Name () string {
@@ -135,7 +138,7 @@ func logLevelToGethVerbosity(logLevel LogLevel) string {
135
138
func (o * OpGeth ) Run (service * service , ctx * ExContext ) {
136
139
var nodeKeyFlag string
137
140
if o .UseDeterministicP2PKey {
138
- nodeKeyFlag = "--nodekey {{.Dir}} /deterministic_p2p_key.txt "
141
+ nodeKeyFlag = "--nodekey /data /deterministic_p2p_key.txt "
139
142
}
140
143
141
144
service .
@@ -145,9 +148,9 @@ func (o *OpGeth) Run(service *service, ctx *ExContext) {
145
148
WithLabel ("metrics_path" , "/debug/metrics/prometheus" ).
146
149
WithArgs (
147
150
"-c" ,
148
- "geth init --datadir {{.Dir}} /data_opgeth --state.scheme hash {{.Dir}} /l2-genesis.json && " +
151
+ "geth init --datadir /data_opgeth --state.scheme hash /data /l2-genesis.json && " +
149
152
"exec geth " +
150
- "--datadir {{.Dir}} /data_opgeth " +
153
+ "--datadir /data_opgeth " +
151
154
"--verbosity " + logLevelToGethVerbosity (ctx .LogLevel )+ " " +
152
155
"--http " +
153
156
"--http.corsdomain \" *\" " +
@@ -167,15 +170,19 @@ func (o *OpGeth) Run(service *service, ctx *ExContext) {
167
170
"--authrpc.addr 0.0.0.0 " +
168
171
"--authrpc.port " + `{{Port "authrpc" 8551}} ` +
169
172
"--authrpc.vhosts \" *\" " +
170
- "--authrpc.jwtsecret {{.Dir}} /jwtsecret " +
173
+ "--authrpc.jwtsecret /data /jwtsecret " +
171
174
"--gcmode archive " +
172
175
"--state.scheme hash " +
173
176
"--port " + `{{Port "rpc" 30303}} ` +
174
177
nodeKeyFlag +
175
178
"--metrics " +
176
179
"--metrics.addr 0.0.0.0 " +
177
180
"--metrics.port " + `{{Port "metrics" 6061}}` ,
178
- )
181
+ ).
182
+ WithVolume ("data" , "/data_opgeth" ).
183
+ WithArtifact ("/data/l2-genesis.json" , "l2-genesis.json" ).
184
+ WithArtifact ("/data/jwtsecret" , "jwtsecret" ).
185
+ WithArtifact ("/data/deterministic_p2p_key.txt" , "deterministic_p2p_key.txt" )
179
186
}
180
187
181
188
func (o * OpGeth ) Name () string {
@@ -253,10 +260,10 @@ func (r *RethEL) Run(svc *service, ctx *ExContext) {
253
260
WithEntrypoint ("/usr/local/bin/reth" ).
254
261
WithArgs (
255
262
"node" ,
256
- "--chain" , "{{.Dir}} /genesis.json" ,
257
- "--datadir" , "{{.Dir}} /data_reth" ,
263
+ "--chain" , "/data /genesis.json" ,
264
+ "--datadir" , "/data_reth" ,
258
265
"--color" , "never" ,
259
- "--ipcpath" , "{{.Dir}} /reth.ipc" ,
266
+ "--ipcpath" , "/data_reth /reth.ipc" ,
260
267
"--addr" , "127.0.0.1" ,
261
268
"--port" , `{{Port "rpc" 30303}}` ,
262
269
// "--disable-discovery",
@@ -267,12 +274,15 @@ func (r *RethEL) Run(svc *service, ctx *ExContext) {
267
274
"--http.port" , `{{Port "http" 8545}}` ,
268
275
"--authrpc.port" , `{{Port "authrpc" 8551}}` ,
269
276
"--authrpc.addr" , "0.0.0.0" ,
270
- "--authrpc.jwtsecret" , "{{.Dir}} /jwtsecret" ,
277
+ "--authrpc.jwtsecret" , "/data /jwtsecret" ,
271
278
"--metrics" , `0.0.0.0:{{Port "metrics" 9090}}` ,
272
279
// For reth version 1.2.0 the "legacy" engine was removed, so we now require these arguments:
273
280
"--engine.persistence-threshold" , "0" , "--engine.memory-block-buffer-target" , "0" ,
274
281
logLevelToRethVerbosity (ctx .LogLevel ),
275
- )
282
+ ).
283
+ WithArtifact ("/data/genesis.json" , "genesis.json" ).
284
+ WithArtifact ("/data/jwtsecret" , "jwtsecret" ).
285
+ WithVolume ("data" , "/data_reth" )
276
286
277
287
if r .UseNativeReth {
278
288
// we need to use this otherwise the db cannot be binded
@@ -303,8 +313,8 @@ func (l *LighthouseBeaconNode) Run(svc *service, ctx *ExContext) {
303
313
WithEntrypoint ("lighthouse" ).
304
314
WithArgs (
305
315
"bn" ,
306
- "--datadir" , "{{.Dir}}/data_beacon_node " ,
307
- "--testnet-dir" , "{{.Dir}}/ testnet" ,
316
+ "--datadir" , "/data_beacon " ,
317
+ "--testnet-dir" , "/data/ testnet-dir " ,
308
318
"--enable-private-discovery" ,
309
319
"--disable-peer-scoring" ,
310
320
"--staking" ,
@@ -321,11 +331,14 @@ func (l *LighthouseBeaconNode) Run(svc *service, ctx *ExContext) {
321
331
"--disable-packet-filter" ,
322
332
"--target-peers" , "0" ,
323
333
"--execution-endpoint" , Connect (l .ExecutionNode , "authrpc" ),
324
- "--execution-jwt" , "{{.Dir}} /jwtsecret" ,
334
+ "--execution-jwt" , "/data /jwtsecret" ,
325
335
"--always-prepare-payload" ,
326
336
"--prepare-payload-lookahead" , "8000" ,
327
337
"--suggested-fee-recipient" , "0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990" ,
328
338
).
339
+ WithArtifact ("/data/testnet-dir" , "testnet" ).
340
+ WithArtifact ("/data/jwtsecret" , "jwtsecret" ).
341
+ WithVolume ("data" , "/data_beacon" ).
329
342
WithReady (ReadyCheck {
330
343
QueryURL : "http://localhost:3500/eth/v1/node/syncing" ,
331
344
Interval : 1 * time .Second ,
@@ -359,14 +372,16 @@ func (l *LighthouseValidator) Run(service *service, ctx *ExContext) {
359
372
WithEntrypoint ("lighthouse" ).
360
373
WithArgs (
361
374
"vc" ,
362
- "--datadir" , "{{.Dir}}/data_validator " ,
363
- "--testnet-dir" , "{{.Dir}}/ testnet" ,
375
+ "--datadir" , "/data/validator " ,
376
+ "--testnet-dir" , "/data/ testnet-dir " ,
364
377
"--init-slashing-protection" ,
365
378
"--beacon-nodes" , Connect (l .BeaconNode , "http" ),
366
379
"--suggested-fee-recipient" , "0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990" ,
367
380
"--builder-proposals" ,
368
381
"--prefer-builder-proposals" ,
369
- )
382
+ ).
383
+ WithArtifact ("/data/validator" , "data_validator" ).
384
+ WithArtifact ("/data/testnet-dir" , "testnet" )
370
385
}
371
386
372
387
func (l * LighthouseValidator ) Name () string {
@@ -512,16 +527,19 @@ func (o *OpReth) Run(service *service, ctx *ExContext) {
512
527
"node" ,
513
528
"--authrpc.port" , `{{Port "authrpc" 8551}}` ,
514
529
"--authrpc.addr" , "0.0.0.0" ,
515
- "--authrpc.jwtsecret" , "{{.Dir}} /jwtsecret" ,
530
+ "--authrpc.jwtsecret" , "/data /jwtsecret" ,
516
531
"--http" ,
517
532
"--http.addr" , "0.0.0.0" ,
518
533
"--http.port" , `{{Port "http" 8545}}` ,
519
- "--chain" , "{{.Dir}} /l2-genesis.json" ,
520
- "--datadir" , "{{.Dir}} /data_op_reth" ,
534
+ "--chain" , "/data /l2-genesis.json" ,
535
+ "--datadir" , "/data_op_reth" ,
521
536
"--disable-discovery" ,
522
537
"--color" , "never" ,
523
538
"--metrics" , `0.0.0.0:{{Port "metrics" 9090}}` ,
524
- "--port" , `{{Port "rpc" 30303}}` )
539
+ "--port" , `{{Port "rpc" 30303}}` ).
540
+ WithArtifact ("/data/jwtsecret" , "jwtsecret" ).
541
+ WithArtifact ("/data/l2-genesis.json" , "l2-genesis.json" ).
542
+ WithVolume ("data" , "/data_op_reth" )
525
543
}
526
544
527
545
func (o * OpReth ) Name () string {
0 commit comments