mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-02 13:23:13 +00:00
23 lines
695 B
Bash
Executable File
23 lines
695 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
export CFG_FILE_PATH="/config.yaml" \
|
|
CFG_SERVER_ADDR="${CFG_SERVER_ADDR:-http://cfgsync:4400}" \
|
|
CFG_HOST_IP=$(hostname -i) \
|
|
CFG_HOST_KIND="${CFG_HOST_KIND:-validator}" \
|
|
CFG_HOST_IDENTIFIER="${CFG_HOST_IDENTIFIER:-validator-$(hostname -i)}" \
|
|
LOG_LEVEL="INFO" \
|
|
POL_PROOF_DEV_MODE=true
|
|
|
|
# Ensure recovery directory exists to avoid early crashes in services that
|
|
# persist state.
|
|
mkdir -p /recovery
|
|
|
|
/usr/bin/cfgsync-client
|
|
|
|
# Align bootstrap timing with executors to keep configs consistent.
|
|
sed -i "s/prolonged_bootstrap_period: .*/prolonged_bootstrap_period: '3.000000000'/" /config.yaml
|
|
|
|
exec /usr/bin/nomos-node /config.yaml
|