Skip to content

Commit ce94163

Browse files
authored
chore: [ETH-727] Clean up old Parity chain (#240)
Removed some deprecated services. These have `fastchain` counterparts and therefore deprecated: - `graph-node` - `deploy-network-subgraphs` - `graph-deploy-dataunion-subgraph` - `postgres` - `ens-sync-script` These used the deprecated `graph-node` service: - `deploy-hub-subgraph` - `graph-deploy-streamregistry-subgraph` - `graph-deploy-tatum-subgraph` These are the old Parity chain services, nowadays replaced by `dev-chain-fast`.
1 parent 45344ff commit ce94163

File tree

4 files changed

+8
-269
lines changed

4 files changed

+8
-269
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ If you know what services you need, you don't need to use the `bin.sh`, you can
4848

4949
3. Bind the loopback interface to 10.200.10.1: `netsh int ip add address "Loopback" 10.200.10.1`
5050

51-
4. For instance, for the Ethereum environment without core-api: `docker-compose up parity-node0 parity-sidechain-node0 bridge`
52-
5351
## Quickstart
5452

5553
**Option 1**
@@ -58,7 +56,7 @@ If you know what services you need, you don't need to use the `bin.sh`, you can
5856

5957
### Interacting with the local blockchain
6058

61-
The local Streamr Stack is configured to interact with the local Ethereum Parity node. Transactions should be near instant.
59+
The local Streamr Stack is configured to interact with the local Ethereum node. Transactions should be near instant.
6260

6361
The recommended way to interact with the blockchain is through Metamask. Here is the network configuration to add:
6462
- Network Name: Streamr Local
@@ -233,8 +231,7 @@ streamr-docker-dev start --wait
233231
### Supporting services
234232
- 1 x MySQL instance
235233
- 1 x Apache Cassandra instance with `streamr_dev` keyspace
236-
- 1 x [Ethereum Parity node ("mainchain")](https://github.com/streamr-dev/open-ethereum-poa)
237-
- 1 x [Ethereum Parity node ("sidechain")](https://github.com/streamr-dev/open-ethereum-poa)
234+
- 1 x Ethereum node
238235
- 1 x Postgres DB for TheGraph
239236
- 1 x ipfs for TheGraph
240237
- 1 x adapter for ENS queries from sidechain to mainchain

docker-compose-ci.yml

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -56,62 +56,6 @@ services:
5656
memory: 50M
5757
reservations:
5858
memory: 10M
59-
parity-node0:
60-
deploy:
61-
resources:
62-
limits:
63-
cpus: '1.0'
64-
memory: 100M
65-
reservations:
66-
memory: 20M
67-
parity-sidechain-node0:
68-
deploy:
69-
resources:
70-
limits:
71-
cpus: '1.0'
72-
memory: 100M
73-
reservations:
74-
memory: 20M
75-
graph-node:
76-
deploy:
77-
resources:
78-
limits:
79-
cpus: '0.5'
80-
memory: 200M
81-
reservations:
82-
memory: 20M
83-
graph-deploy-streamregistry-subgraph:
84-
deploy:
85-
resources:
86-
limits:
87-
cpus: '0.5'
88-
memory: 200M
89-
reservations:
90-
memory: 20M
91-
deploy-network-subgraphs:
92-
deploy:
93-
resources:
94-
limits:
95-
cpus: '0.5'
96-
memory: 400M
97-
reservations:
98-
memory: 40M
99-
deploy-hub-subgraph:
100-
deploy:
101-
resources:
102-
limits:
103-
cpus: '0.5'
104-
memory: 200M
105-
reservations:
106-
memory: 20M
107-
graph-deploy-dataunion-subgraph:
108-
deploy:
109-
resources:
110-
limits:
111-
cpus: '0.5'
112-
memory: 200M
113-
reservations:
114-
memory: 20M
11559
ipfs:
11660
deploy:
11761
resources:
@@ -120,11 +64,3 @@ services:
12064
memory: 250M
12165
reservations:
12266
memory: 20M
123-
postgres:
124-
deploy:
125-
resources:
126-
limits:
127-
cpus: '1.0'
128-
memory: 100M
129-
reservations:
130-
memory: 10M

docker-compose.yml

Lines changed: 0 additions & 194 deletions
Original file line numberDiff line numberDiff line change
@@ -178,140 +178,6 @@ services:
178178
interval: 10s
179179
timeout: 10s
180180
retries: 60
181-
parity-node0:
182-
container_name: streamr-dev-parity-node0
183-
environment:
184-
CHAIN_ID: 0x2323
185-
image: streamr/open-ethereum-poa-mainchain-preload1:dev
186-
networks:
187-
- streamr-network
188-
ports:
189-
- "8545:8540"
190-
- "8450:8450"
191-
- "30309:30309"
192-
restart: unless-stopped
193-
healthcheck:
194-
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "--header", "Content-Type: application/json", "--data", '[{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1},{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}]', "http://localhost:8540/api/health"]
195-
interval: 1m30s
196-
timeout: 10s
197-
retries: 3
198-
command: --chain ./streamr-spec.json --config ./node0.toml
199-
volumes:
200-
- type: volume
201-
source: data-parity-node0
202-
target: /home/parity/parity_data
203-
volume:
204-
nocopy: true
205-
parity-sidechain-node0:
206-
container_name: streamr-dev-parity-sidechain-node0
207-
environment:
208-
CHAIN_ID: 0x2325
209-
image: streamr/open-ethereum-poa-sidechain-preload1:dev
210-
networks:
211-
- streamr-network
212-
ports:
213-
- "8546:8540"
214-
- "8451:8450"
215-
- "30310:30309"
216-
restart: unless-stopped
217-
healthcheck:
218-
test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--max-time", "9", "--header", "Content-Type: application/json", "--data", '[{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1},{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}]', "http://localhost:8540/api/health"]
219-
interval: 1m30s
220-
timeout: 10s
221-
retries: 3
222-
command: --chain ./streamr-spec.json --config ./node0.toml
223-
volumes:
224-
- type: volume
225-
source: data-parity-sidechain-node0
226-
target: /home/parity/parity_data
227-
volume:
228-
nocopy: true
229-
graph-node:
230-
container_name: streamr-dev-thegraph-node
231-
image: graphprotocol/graph-node:v0.30.0
232-
restart: unless-stopped
233-
networks:
234-
- streamr-network
235-
ports:
236-
- '8000:8000'
237-
- '8001:8001'
238-
- '8020:8020'
239-
- '8030:8030'
240-
- '8040:8040'
241-
depends_on:
242-
- ipfs
243-
- postgres
244-
- parity-sidechain-node0
245-
environment:
246-
postgres_host: postgres
247-
postgres_user: streamr
248-
postgres_pass: let-me-in
249-
postgres_db: streamr
250-
ipfs: 'streamr-dev-ipfs:5001'
251-
ethereum: 'xDai:http://streamr-dev-parity-sidechain-node0:8540'
252-
RUST_LOG: info
253-
GRAPH_ALLOW_NON_DETERMINISTIC_FULLTEXT_SEARCH: "true"
254-
healthcheck:
255-
test: ["CMD", "nc", "-z", "localhost", "8000"]
256-
interval: 5s
257-
timeout: 10s
258-
retries: 10
259-
graph-deploy-streamregistry-subgraph:
260-
container_name: streamr-dev-graph-deploy-streamregistry-subgraph
261-
image: streamr/graph-deploy-streamregistry-subgraph:dev
262-
restart: on-failure # exits on success
263-
networks:
264-
- streamr-network
265-
depends_on:
266-
- graph-node
267-
volumes:
268-
- type: volume
269-
source: data-graph-deploy-legacy
270-
target: /firstrun
271-
volume:
272-
nocopy: false
273-
deploy-network-subgraphs:
274-
container_name: streamr-dev-deploy-network-subgraphs
275-
image: streamr/deploy-network-subgraphs:dev
276-
restart: on-failure # exits on success
277-
networks:
278-
- streamr-network
279-
depends_on:
280-
- graph-node
281-
volumes:
282-
- type: volume
283-
source: data-graph-deploy
284-
target: /firstrun
285-
volume:
286-
nocopy: false
287-
deploy-hub-subgraph:
288-
container_name: streamr-dev-deploy-hub-subgraph
289-
image: streamr/deploy-hub-subgraph:dev
290-
restart: on-failure # exits on success
291-
networks:
292-
- streamr-network
293-
depends_on:
294-
- graph-node
295-
volumes:
296-
- type: volume
297-
source: data-deploy-hub-subgraph
298-
target: /firstrun
299-
volume:
300-
nocopy: false
301-
graph-deploy-dataunion-subgraph:
302-
container_name: streamr-dev-graph-deploy-dataunion-subgraph
303-
image: streamr/graph-deploy-dataunion-subgraph:dev
304-
restart: on-failure # exits on success
305-
networks:
306-
- streamr-network
307-
depends_on:
308-
- graph-node
309-
volumes:
310-
- type: volume
311-
source: data-graph-deploy-dataunion
312-
target: /firstrun
313-
volume:
314-
nocopy: false
315181
graph-deploy-dataunion-subgraph-fastchain:
316182
container_name: streamr-dev-graph-deploy-dataunion-subgraph-fastchain
317183
image: streamr/graph-deploy-dataunion-subgraph:dev-fastchain
@@ -326,20 +192,6 @@ services:
326192
target: /firstrun
327193
volume:
328194
nocopy: false
329-
graph-deploy-tatum-subgraph:
330-
container_name: streamr-dev-graph-deploy-tatum-subgraph
331-
image: streamr/graph-deploy-tatum-subgraph:dev
332-
restart: on-failure # exits on success
333-
networks:
334-
- streamr-network
335-
depends_on:
336-
- graph-node
337-
volumes:
338-
- type: volume
339-
source: data-graph-deploy-tatum
340-
target: /firstrun
341-
volume:
342-
nocopy: false
343195
ipfs:
344196
container_name: streamr-dev-ipfs
345197
image: ipfs/kubo:v0.22.0
@@ -443,31 +295,6 @@ services:
443295
interval: 5s
444296
timeout: 10s
445297
retries: 10
446-
postgres:
447-
container_name: streamr-dev-postgres
448-
image: postgres
449-
restart: unless-stopped
450-
networks:
451-
- streamr-network
452-
ports:
453-
- '5432:5432'
454-
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
455-
environment:
456-
POSTGRES_USER: streamr
457-
POSTGRES_PASSWORD: let-me-in
458-
POSTGRES_DB: streamr
459-
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
460-
volumes:
461-
- type: volume
462-
source: data-postgres
463-
target: /var/lib/postgresql/data
464-
volume:
465-
nocopy: true
466-
healthcheck:
467-
test: ["CMD-SHELL", "pg_isready -U streamr -d streamr"]
468-
interval: 5s
469-
timeout: 10s
470-
retries: 10
471298
stream-metrics-index:
472299
container_name: streamr-dev-stream-metrics-index
473300
image: streamr/stream-metrics-index
@@ -480,19 +307,6 @@ services:
480307
- mysql
481308
- deploy-network-subgraphs-fastchain
482309
- entry-point
483-
ens-sync-script:
484-
container_name: ens-sync-script
485-
image: streamr/ens-sync-script:dev
486-
networks:
487-
- streamr-network
488-
depends_on:
489-
- parity-node0
490-
- parity-sidechain-node0
491-
healthcheck:
492-
test: ["CMD", "echo"] # TODO: health check
493-
interval: 10s
494-
timeout: 10s
495-
retries: 60
496310
ens-sync-script-fastchain:
497311
container_name: ens-sync-script-fastchain
498312
image: streamr/ens-sync-script:dev-fastchain
@@ -514,15 +328,7 @@ volumes:
514328
cassandra_init_scripts:
515329
data-mysql:
516330
data-cassandra:
517-
data-parity-node0:
518-
data-parity-sidechain-node0:
519331
data-ipfs:
520-
data-postgres:
521332
data-postgres-fastchain:
522-
data-graph-deploy:
523333
data-graph-deploy-fastchain:
524-
data-graph-deploy-legacy:
525-
data-deploy-hub-subgraph:
526-
data-graph-deploy-dataunion:
527334
data-graph-deploy-dataunion-fastchain:
528-
data-graph-deploy-tatum:

streamr-docker-dev/help_scripts.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Usage: streamr-docker-dev start [--] <service>...
4747
4848
Examples:
4949
streamr-docker-dev start
50-
streamr-docker-dev start tracker-1 parity-node0
50+
streamr-docker-dev start tracker-1
5151
streamr-docker-dev start --except tracker-1 --wait
5252
5353
Options:
@@ -65,7 +65,7 @@ Usage: streamr-docker-dev stop [options] [--] <service>...
6565
6666
Examples:
6767
streamr-docker-dev stop
68-
streamr-docker-dev stop tracker-1 parity-node0
68+
streamr-docker-dev stop tracker-1
6969
"
7070
}
7171

@@ -77,7 +77,7 @@ Usage: streamr-docker-dev restart [options] [--] <service>...
7777
7878
Examples:
7979
streamr-docker-dev restart
80-
streamr-docker-dev restart tracker-1 parity-node0
80+
streamr-docker-dev restart tracker-1
8181
"
8282
}
8383

@@ -116,8 +116,8 @@ Usage: streamr-docker-dev log [[options] [--] <service>...]
116116
117117
Examples:
118118
streamr-docker-dev log
119-
streamr-docker-dev log tracker-1 parity-node0
120-
streamr-docker-dev log -f tracker-1 parity-node0
119+
streamr-docker-dev log tracker-1
120+
streamr-docker-dev log -f tracker-1
121121
122122
Options:
123123
-f --follow follow log in realtime
@@ -143,7 +143,7 @@ Usage: streamr-docker-dev pull [ [--] <service>...]
143143
144144
Examples:
145145
streamr-docker-dev pull
146-
streamr-docker-dev pull tracker-1 parity-node0
146+
streamr-docker-dev pull tracker-1
147147
"
148148
}
149149

0 commit comments

Comments
 (0)