mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-04-14 15:13:54 +00:00
23 lines
867 B
Bash
Executable File
23 lines
867 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
export CFG_FILE_PATH="/config.yaml" \
|
|
CFG_SERVER_ADDR="http://cfgsync:4400" \
|
|
CFG_HOST_IP=$(hostname -i) \
|
|
CFG_HOST_IDENTIFIER="validator-$(hostname -i)" \
|
|
LOG_LEVEL="INFO" \
|
|
POL_PROOF_DEV_MODE=true
|
|
|
|
/usr/bin/logos-blockchain-cfgsync-client
|
|
|
|
# Use the static deployment-settings.yaml (mounted from host) with consensus
|
|
# params pre-configured for single-node integration tests. Copy to a local path
|
|
# first because sed -i cannot rename on a bind-mounted file. Only the
|
|
# chain_start_time needs to be set dynamically to "now".
|
|
cp /etc/logos-blockchain/deployment-settings.yaml /deployment-settings.yaml
|
|
sed -i "s/PLACEHOLDER_CHAIN_START_TIME/$(date -u '+%Y-%m-%d %H:%M:%S.000000 +00:00:00')/" \
|
|
/deployment-settings.yaml
|
|
|
|
exec /usr/bin/logos-blockchain-node /config.yaml --deployment /deployment-settings.yaml
|