d1bc6a816f
* -- Intermediary Commit -- Just want to commit my code over the weekend, in case I spill coffee on my workstation. * Create DB models ready for write. * Handle SSE events * Update ref for stack-orchestrator * Use env in one place only. * Boot Application on PR * Update syntax * Update syntax * Correct command * Use bash instead of sh * Use until instead of while * Make linter happy and check sse subscription err * Handle Reorgs - Untested
36 lines
825 B
Bash
Executable File
36 lines
825 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sleep 10
|
|
echo "Starting ipld-ethcl-indexer"
|
|
|
|
echo /root/ipld-ethcl-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
|
|
|
|
/root/ipld-ethcl-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
|
|
|
|
rv=$?
|
|
|
|
if [ $rv != 0 ]; then
|
|
echo "ipld-ethcl-indexer startup failed"
|
|
echo 1 > /root/HEALTH
|
|
else
|
|
echo "ipld-ethcl-indexer startup succeeded"
|
|
echo 0 > /root/HEALTH
|
|
fi
|
|
|
|
tail -f /dev/null |