Skip to content

Commit ea05387

Browse files
authored
Dev chain fast (#208)
* WIP replaced sidechain with devchain-fast * fix fast-chain healthcheck * added dev-chain fast as a 3rd chain, configure graph-node with dev-chain-fast * fix graph-node link to fast chain * set parity sidechain as default for theGraph for now * update image references to current fast-chain * added config to docker-compose for graph-node that indexes fast-chain besides the existing config that indexes the old sidechain. The deploycontainer for the fastchain will start up that new graph node config * skip old sidechain graph and deploy-container in CI * disable all old subgraphs
1 parent 95c52ec commit ea05387

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Check out the repo
4848
uses: actions/[email protected]
4949
- name: Start Streamr Docker Stack
50-
run: ./streamr-docker-dev/bin.sh start --wait --timeout 600
50+
run: ./streamr-docker-dev/bin.sh start --except deploy-network-subgraphs --except graph-node --except graph-deploy-tatum-subgraph --except graph-deploy-streamregistry-subgraph --except deploy-hub-subgraph --except graph-deploy-dataunion-subgraph --wait --timeout 600
5151
- name: Collect docker logs on failure
5252
if: failure()
5353
uses: jwalton/[email protected]

docker-compose.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,19 @@ services:
322322
target: /home/parity/parity_data
323323
volume:
324324
nocopy: true
325+
dev-chain-fast:
326+
container_name: streamr-dev-chain-fast
327+
image: streamr/dev-chain-fast:dev
328+
networks:
329+
- streamr-network
330+
ports:
331+
- "8547:8545"
332+
restart: unless-stopped
333+
healthcheck:
334+
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:8545/api/health"]
335+
interval: 1m30s
336+
timeout: 10s
337+
retries: 3
325338
graph-node:
326339
container_name: streamr-dev-thegraph-node
327340
image: graphprotocol/graph-node:v0.30.0
@@ -352,6 +365,36 @@ services:
352365
interval: 5s
353366
timeout: 10s
354367
retries: 10
368+
graph-node-fastchain:
369+
container_name: streamr-dev-thegraph-node
370+
image: graphprotocol/graph-node:v0.30.0
371+
restart: unless-stopped
372+
networks:
373+
- streamr-network
374+
ports:
375+
- '8000:8000'
376+
- '8001:8001'
377+
- '8020:8020'
378+
- '8030:8030'
379+
- '8040:8040'
380+
depends_on:
381+
- ipfs
382+
- postgres
383+
- dev-chain-fast
384+
environment:
385+
postgres_host: postgres
386+
postgres_user: streamr
387+
postgres_pass: let-me-in
388+
postgres_db: streamr
389+
ipfs: 'streamr-dev-ipfs:5001'
390+
ethereum: 'xDai:http://streamr-dev-chain-fast:8545'
391+
RUST_LOG: info
392+
GRAPH_ALLOW_NON_DETERMINISTIC_FULLTEXT_SEARCH: "true"
393+
healthcheck:
394+
test: ["CMD", "nc", "-z", "localhost", "8000"]
395+
interval: 5s
396+
timeout: 10s
397+
retries: 10
355398
graph-deploy-streamregistry-subgraph:
356399
container_name: streamr-dev-graph-deploy-streamregistry-subgraph
357400
image: streamr/graph-deploy-streamregistry-subgraph:dev
@@ -380,6 +423,20 @@ services:
380423
target: /firstrun
381424
volume:
382425
nocopy: false
426+
deploy-network-subgraphs-fastchain:
427+
container_name: streamr-dev-deploy-network-subgraphs
428+
image: streamr/deploy-network-subgraphs:dev-fastchain
429+
restart: on-failure # exits on success
430+
networks:
431+
- streamr-network
432+
depends_on:
433+
- graph-node-fastchain
434+
volumes:
435+
- type: volume
436+
source: data-graph-deploy
437+
target: /firstrun
438+
volume:
439+
nocopy: false
383440
deploy-hub-subgraph:
384441
container_name: streamr-dev-deploy-hub-subgraph
385442
image: streamr/deploy-hub-subgraph:dev

0 commit comments

Comments
 (0)