Utilize config file for ipld-eth-beacon
This commit is contained in:
parent
23d7d522cc
commit
b2f3d6498b
40
config/cicd/boot.ipld-eth-beacon-indexer.json
Normal file
40
config/cicd/boot.ipld-eth-beacon-indexer.json
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"db": {
|
||||||
|
"address": "ipld-eth-beacon-db",
|
||||||
|
"password": "password",
|
||||||
|
"port": 5432,
|
||||||
|
"username": "vdbm",
|
||||||
|
"name": "vulcanize_testing",
|
||||||
|
"driver": "PGX"
|
||||||
|
},
|
||||||
|
"bc": {
|
||||||
|
"address": "lighthouse",
|
||||||
|
"port": 5052,
|
||||||
|
"type": "lighthouse",
|
||||||
|
"bootRetryInterval": 30,
|
||||||
|
"bootMaxRetry": 5,
|
||||||
|
"maxHistoricProcessWorker": 2,
|
||||||
|
"connectionProtocol": "http",
|
||||||
|
"uniqueNodeIdentifier": 100,
|
||||||
|
"checkDb": true
|
||||||
|
},
|
||||||
|
"t": {
|
||||||
|
"skipSync": true
|
||||||
|
},
|
||||||
|
"log": {
|
||||||
|
"level": "debug",
|
||||||
|
"output": true,
|
||||||
|
"file": "./ipld-eth-beacon-indexer.log",
|
||||||
|
"format": "json"
|
||||||
|
},
|
||||||
|
"kg": {
|
||||||
|
"increment": 10000,
|
||||||
|
"processKnownGaps": true,
|
||||||
|
"maxKnownGapsWorker": 2
|
||||||
|
},
|
||||||
|
"pm": {
|
||||||
|
"address": "localhost",
|
||||||
|
"port": 9000,
|
||||||
|
"metrics": true
|
||||||
|
}
|
||||||
|
}
|
@ -8,7 +8,7 @@
|
|||||||
"driver": "PGX"
|
"driver": "PGX"
|
||||||
},
|
},
|
||||||
"bc": {
|
"bc": {
|
||||||
"address": "10.203.8.51",
|
"address": "localhost",
|
||||||
"port": 5052,
|
"port": 5052,
|
||||||
"type": "lighthouse",
|
"type": "lighthouse",
|
||||||
"bootRetryInterval": 30,
|
"bootRetryInterval": 30,
|
@ -3,30 +3,9 @@
|
|||||||
sleep 10
|
sleep 10
|
||||||
echo "Starting ipld-eth-beacon-indexer"
|
echo "Starting ipld-eth-beacon-indexer"
|
||||||
|
|
||||||
echo /root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --db.address $DB_ADDRESS \
|
echo /root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json
|
||||||
--db.password $DB_PASSWORD \
|
|
||||||
--db.port $DB_PORT \
|
|
||||||
--db.username $DB_USER \
|
|
||||||
--db.name $DB_NAME \
|
|
||||||
--db.driver $DB_DRIVER \
|
|
||||||
--bc.address $BC_ADDRESS \
|
|
||||||
--bc.port $BC_PORT \
|
|
||||||
--log.level $LOG_LEVEL\
|
|
||||||
--t.skipSync=$SKIP_SYNC \
|
|
||||||
--kg.increment $KNOWN_GAP_INCREMENT
|
|
||||||
|
|
||||||
/root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --db.address $DB_ADDRESS \
|
|
||||||
--db.password $DB_PASSWORD \
|
|
||||||
--db.port $DB_PORT \
|
|
||||||
--db.username $DB_USER \
|
|
||||||
--db.name $DB_NAME \
|
|
||||||
--db.driver $DB_DRIVER \
|
|
||||||
--bc.address $BC_ADDRESS \
|
|
||||||
--bc.port $BC_PORT \
|
|
||||||
--log.level $LOG_LEVEL \
|
|
||||||
--t.skipSync=$SKIP_SYNC \
|
|
||||||
--kg.increment $KNOWN_GAP_INCREMENT
|
|
||||||
|
|
||||||
|
/root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json
|
||||||
rv=$?
|
rv=$?
|
||||||
|
|
||||||
if [ $rv != 0 ]; then
|
if [ $rv != 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user