Skip to content

Commit 23fb80f

Browse files
authored
Merge pull request #500 from EspressoSystems/ak/integration
Add correct node configs to docker compose setup.
2 parents 18127ce + 2eb97bb commit 23fb80f

File tree

6 files changed

+35
-31
lines changed

6 files changed

+35
-31
lines changed

docker-compose.yml

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ services:
55
[
66
"/app/timeboost",
77
"--committee-id", "0",
8-
"--http-port", "8800",
9-
"--config", "docker/node_0.toml",
10-
"--stamp", "/tmp/timeboost.stamp",
11-
"--namespace", "10101",
8+
"--config", "node_0.toml",
129
]
1310
networks:
1411
timeboost:
@@ -26,16 +23,16 @@ services:
2623
- "8060:8002"
2724
- "8800:8800"
2825
- "9000:9000"
26+
depends_on:
27+
nitro-dev:
28+
condition: service_healthy
2929
node1:
3030
image: timeboost:latest
3131
command:
3232
[
3333
"/app/timeboost",
3434
"--committee-id", "0",
35-
"--http-port", "8800",
36-
"--config", "docker/node_1.toml",
37-
"--stamp", "/tmp/timeboost.stamp",
38-
"--namespace", "10101",
35+
"--config", "node_1.toml",
3936
]
4037
networks:
4138
timeboost:
@@ -53,16 +50,16 @@ services:
5350
- "8061:8002"
5451
- "8801:8800"
5552
- "9001:9000"
53+
depends_on:
54+
nitro-dev:
55+
condition: service_healthy
5656
node2:
5757
image: timeboost:latest
5858
command:
5959
[
6060
"/app/timeboost",
6161
"--committee-id", "0",
62-
"--http-port", "8800",
63-
"--config", "docker/node_2.toml",
64-
"--stamp", "/tmp/timeboost.stamp",
65-
"--namespace", "10101",
62+
"--config", "node_2.toml",
6663
]
6764
networks:
6865
timeboost:
@@ -80,16 +77,16 @@ services:
8077
- "8062:8002"
8178
- "8802:8800"
8279
- "9002:9000"
80+
depends_on:
81+
nitro-dev:
82+
condition: service_healthy
8383
node3:
8484
image: timeboost:latest
8585
command:
8686
[
8787
"/app/timeboost",
8888
"--committee-id", "0",
89-
"--http-port", "8800",
90-
"--config", "docker/node_3.toml",
91-
"--stamp", "/tmp/timeboost.stamp",
92-
"--namespace", "10101",
89+
"--config", "node_3.toml",
9390
]
9491
networks:
9592
timeboost:
@@ -107,17 +104,16 @@ services:
107104
- "8063:8002"
108105
- "8803:8800"
109106
- "9003:9000"
107+
depends_on:
108+
nitro-dev:
109+
condition: service_healthy
110110
node4:
111111
image: timeboost:latest
112112
command:
113113
[
114114
"/app/timeboost",
115115
"--committee-id", "0",
116-
"--http-port", "8800",
117-
"--keyset-file", "docker.json",
118-
"--config", "docker/node_4.toml",
119-
"--stamp", "/tmp/timeboost.stamp",
120-
"--namespace", "10101",
116+
"--config", "node_4.toml",
121117
]
122118
networks:
123119
timeboost:
@@ -135,6 +131,9 @@ services:
135131
- "8064:8002"
136132
- "8804:8800"
137133
- "9004:9000"
134+
depends_on:
135+
nitro-dev:
136+
condition: service_healthy
138137
nitro-dev:
139138
image: offchainlabs/nitro-node:v3.2.1-d81324d
140139
ports:
@@ -143,6 +142,11 @@ services:
143142
timeboost:
144143
ipv4_address: 172.20.0.12
145144
command: --dev --http.addr 0.0.0.0 --http.api=net,web3,eth,debug
145+
healthcheck:
146+
test: ["CMD", "curl", "-s", "-X", "POST", "--data", '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}', "-H", "Content-Type: application/json", "http://localhost:8547"]
147+
interval: 5s
148+
timeout: 3s
149+
retries: 10
146150
yapper:
147151
image: yapper:latest
148152
command:

test-configs/docker/node_0.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public = "7PdmfTS45d2hTXB8NcrTmvDwUVBimpYBbrBaGnu3i5Ne65krVfUpbe7bYRHS3AEg7H"
2323
namespace = 10101
2424

2525
[chain.parent]
26-
id = 31337
27-
rpc_url = "http://127.0.0.1:8545/"
26+
id = 412346
27+
rpc_url = "http://172.20.0.12:8547/"
2828
ibox_contract = "0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1"
2929
block_tag = "finalized"
3030
key_manager_contract = "0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35"

test-configs/docker/node_1.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public = "7p1BtEz7WnFMt6Hr28X3Rngqza6i8hRoswhzZRFd6GzgkspLKHBfDocHP8DwzXiNiZ"
2323
namespace = 10101
2424

2525
[chain.parent]
26-
id = 31337
27-
rpc_url = "http://127.0.0.1:8545/"
26+
id = 412346
27+
rpc_url = "http://172.20.0.12:8547/"
2828
ibox_contract = "0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1"
2929
block_tag = "finalized"
3030
key_manager_contract = "0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35"

test-configs/docker/node_2.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public = "62bnAAbU58zZUcGqy9JKGZRZHkm3g7JZB2DtJGQyChXQBPGvXSS6fF21yoxiVuD1eb"
2323
namespace = 10101
2424

2525
[chain.parent]
26-
id = 31337
27-
rpc_url = "http://127.0.0.1:8545/"
26+
id = 412346
27+
rpc_url = "http://172.20.0.12:8547/"
2828
ibox_contract = "0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1"
2929
block_tag = "finalized"
3030
key_manager_contract = "0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35"

test-configs/docker/node_3.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public = "7aZBFZUEbXxFH9SiGJeUyjzas4mYJ1R13mTPsPeawVU7JFuocfvX9XsRT8qgr17RCe"
2323
namespace = 10101
2424

2525
[chain.parent]
26-
id = 31337
27-
rpc_url = "http://127.0.0.1:8545/"
26+
id = 412346
27+
rpc_url = "http://172.20.0.12:8547/"
2828
ibox_contract = "0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1"
2929
block_tag = "finalized"
3030
key_manager_contract = "0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35"

test-configs/docker/node_4.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public = "6R69TzDg3jo1MTex9Uter9XQud458YPpSvXirkYdS295PV81CRvgz5jVWQbkCpZnYV"
2323
namespace = 10101
2424

2525
[chain.parent]
26-
id = 31337
27-
rpc_url = "http://127.0.0.1:8545/"
26+
id = 412346
27+
rpc_url = "http://172.20.0.12:8547/"
2828
ibox_contract = "0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1"
2929
block_tag = "finalized"
3030
key_manager_contract = "0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35"

0 commit comments

Comments
 (0)