forked from covalenthq/bsp-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry.sh
executable file
·21 lines (20 loc) · 915 Bytes
/
entry.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
if [ "$BLOCKCHAIN" == "elrond" ]
then
timeout 120s ./bsp-agent --redis-url=redis://username:@redis:6379/0?topic=replication-2#replicate \
--avro-codec-path=./codec/block-elrond.avsc \
--binary-file-path=./bin/block-elrond/ \
--proof-chain-address=0xEa2ff902dbeEECcc828757B881b343F9316752e5\
--consumer-timeout=15 \
--websocket-urls="34.69.250.147:20000 34.69.250.147:20001 34.69.250.147:20002 34.69.250.147:20003"
else
./bsp-agent --redis-url=redis://username:@redis:6379/0?topic=replication-2#replicate \
--avro-codec-path=./codec/block-ethereum.avsc \
--binary-file-path=./bin/block-ethereum/ \
--block-divisor=3 \
--log-folder ./logs/ \
--proof-chain-address=0xEa2ff902dbeEECcc828757B881b343F9316752e5 \
--metrics --metrics.port 6063 --metrics.addr 0.0.0.0 \
--consumer-timeout=15 \
--ipfs-pinner-server="http://ipfs-pinner:3001/"
fi