-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
119 lines (98 loc) · 4.26 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
.PHONY: run geth-lighthouse geth-nimbus geth-lodestar geth-prysm geth-teku charon run-charon-lighthouse run-charon-nimbus run-charon-lodestar run-charon-prysm run-charon-teku clean
# Define the composite step
geth-lighthouse-charon-lighthouse: geth-lighthouse charon run-charon-lighthouse
geth-lighthouse-charon-lodestar: geth-lighthouse charon run-charon-lodestar
geth-lighthouse-charon-teku: geth-lighthouse charon run-charon-teku
geth-lighthouse-charon-nimbus: geth-lighthouse charon run-charon-nimbus
geth-lighthouse-charon-prysm: geth-lighthouse charon run-charon-prysm
geth-lodestar-charon-lighthouse: geth-lodestar charon run-charon-lighthouse
geth-lodestar-charon-lodestar: geth-lodestar charon run-charon-lodestar
geth-lodestar-charon-teku: geth-lodestar charon run-charon-teku
geth-lodestar-charon-nimbus: geth-lodestar charon run-charon-nimbus
geth-lodestar-charon-prysm: geth-lodestar charon run-charon-prysm
geth-teku-charon-lighthouse: geth-teku charon run-charon-lighthouse
geth-teku-charon-lodestar: geth-teku charon run-charon-lodestar
geth-teku-charon-teku: geth-teku charon run-charon-teku
geth-teku-charon-nimbus: geth-teku charon run-charon-nimbus
geth-teku-charon-prysm: geth-teku charon run-charon-prysm
geth-nimbus-charon-lighthouse: geth-nimbus charon run-charon-lighthouse
geth-nimbus-charon-lodestar: geth-nimbus charon run-charon-lodestar
geth-nimbus-charon-teku: geth-nimbus charon run-charon-teku
geth-nimbus-charon-nimbus: geth-nimbus charon run-charon-nimbus
geth-nimbus-charon-prysm: geth-nimbus charon run-charon-prysm
geth-prysm-charon-lighthouse: geth-prysm charon run-charon-lighthouse
geth-prysm-charon-lodestar: geth-prysm charon run-charon-lodestar
geth-prysm-charon-teku: geth-prysm charon run-charon-teku
geth-prysm-charon-nimbus: geth-prysm charon run-charon-nimbus
geth-prysm-charon-prysm: geth-prysm charon run-charon-prysm
geth-lighthouse:
rm -f planprint
kurtosis run --enclave local-eth-testnet github.com/ethpandaops/ethereum-package --args-file ./network_params_geth_lighthouse.yaml > planprint
@echo "Waiting for 10 seconds..."
@sleep 10
geth-nimbus:
@echo "WARNING: Nimbus BN requires Charon to enable feature json_requests"
@read -p "Press enter to continue"
rm -f planprint
kurtosis run --enclave local-eth-testnet github.com/ethpandaops/ethereum-package --args-file ./network_params_geth_nimbus.yaml > planprint
@echo "Waiting for 10 seconds..."
@sleep 10
geth-lodestar:
rm -f planprint
kurtosis run --enclave local-eth-testnet github.com/ethpandaops/ethereum-package --args-file ./network_params_geth_lodestar.yaml > planprint
@echo "Waiting for 10 seconds..."
@sleep 10
geth-prysm:
rm -f planprint
kurtosis run --enclave local-eth-testnet github.com/ethpandaops/ethereum-package --args-file ./network_params_geth_prysm.yaml > planprint
@echo "Waiting for 60 seconds... don't skip the wait"
@sleep 60
geth-teku:
rm -f planprint
kurtosis run --enclave local-eth-testnet github.com/ethpandaops/ethereum-package --args-file ./network_params_geth_teku.yaml > planprint
@echo "Waiting for 60 seconds... don't skip the wait"
@sleep 60
charon:
mkdir -p data
./run_charon.sh
./promtoken.sh
run-charon-lighthouse:
docker compose up node0 node1 node2 vc0-lighthouse vc1-lighthouse vc2-lighthouse prometheus -d
run-charon-nimbus:
mkdir -p data/nimbus/vc{0,1,2}
docker compose up node0 node1 node2 vc0-nimbus vc1-nimbus vc2-nimbus prometheus -d
run-charon-lodestar:
mkdir -p data/lodestar/vc{0,1,2}/{caches,keystores,validator-db}
docker compose up node0 node1 node2 vc0-lodestar vc1-lodestar vc2-lodestar prometheus -d
run-charon-prysm:
docker compose up node0 node1 node2 vc0-prysm vc1-prysm vc2-prysm prometheus -d
run-charon-teku:
docker compose up node0 node1 node2 vc0-teku vc1-teku vc2-teku prometheus -d
exit-lighthouse:
./lighthouse/exit.sh 0
./lighthouse/exit.sh 1
./lighthouse/exit.sh 2
exit-nimbus:
./nimbus/exit.sh 0
./nimbus/exit.sh 1
./nimbus/exit.sh 2
exit-lodestar:
./lodestar/exit.sh 0
./lodestar/exit.sh 1
./lodestar/exit.sh 2
exit-teku:
./teku/exit.sh 0
./teku/exit.sh 1
./teku/exit.sh 2
clean:
-docker compose down
-kurtosis enclave stop local-eth-testnet
-kurtosis enclave rm local-eth-testnet
rm -rf node*
rm -f planprint
rm -rf keystore
rm -rf testnet
rm -rf charon-keystore
rm -rf charon-keys
rm -rf .charon
rm -rf data