customize run script for cluster 42

This commit is contained in:
Václav Pavlín 2025-03-14 13:24:16 +01:00
parent 5b8f735d8b
commit 9e6e82b61b
No known key found for this signature in database
GPG Key ID: B378FB31BB6D89A5

View File

@ -2,16 +2,16 @@
echo "I am a nwaku node" echo "I am a nwaku node"
if [ -n "${ETH_CLIENT_ADDRESS}" ] ; then # if [ -n "${ETH_CLIENT_ADDRESS}" ] ; then
echo "ETH_CLIENT_ADDRESS variable was renamed to RLN_RELAY_ETH_CLIENT_ADDRESS" # echo "ETH_CLIENT_ADDRESS variable was renamed to RLN_RELAY_ETH_CLIENT_ADDRESS"
echo "Please update your .env file" # echo "Please update your .env file"
exit 1 # exit 1
fi # fi
if [ -z "${RLN_RELAY_ETH_CLIENT_ADDRESS}" ]; then # if [ -z "${RLN_RELAY_ETH_CLIENT_ADDRESS}" ]; then
echo "Missing Eth client address, please refer to README.md for detailed instructions" # echo "Missing Eth client address, please refer to README.md for detailed instructions"
exit 1 # exit 1
fi # fi
MY_EXT_IP=$(wget -qO- https://api4.ipify.org) MY_EXT_IP=$(wget -qO- https://api4.ipify.org)
DNS_WSS_CMD= DNS_WSS_CMD=
@ -106,7 +106,10 @@ exec /usr/bin/wakunode\
--lightpush=true\ --lightpush=true\
--keep-alive=true\ --keep-alive=true\
--max-connections=150\ --max-connections=150\
--cluster-id=1\ --cluster-id=42\
--num-shards-in-network=1\
--shard=0\
--peer-exchange=true\
--discv5-discovery=true\ --discv5-discovery=true\
--discv5-udp-port=9005\ --discv5-udp-port=9005\
--discv5-enr-auto-update=True\ --discv5-enr-auto-update=True\
@ -124,10 +127,6 @@ exec /usr/bin/wakunode\
--nat=extip:"${MY_EXT_IP}"\ --nat=extip:"${MY_EXT_IP}"\
--store=true\ --store=true\
--store-message-db-url="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/postgres"\ --store-message-db-url="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/postgres"\
--rln-relay-eth-client-address="${RLN_RELAY_ETH_CLIENT_ADDRESS}"\
--rln-relay-tree-path="/etc/rln_tree"\
"${RLN_RELAY_CRED_PATH}"\
"${RLN_RELAY_CRED_PASSWORD}"\
${DNS_WSS_CMD}\ ${DNS_WSS_CMD}\
${NODEKEY}\ ${NODEKEY}\
${STORE_RETENTION_POLICY}\ ${STORE_RETENTION_POLICY}\