d2502bb51b
* test that all nodes can check in with all satellites * keep kademlia config * add untrusted satellite test * use getversion * remove kademlia config changes in test-sim-backwards.sh * add kademlia flags back to storj-sim storagenode * reset kademlia flags in storagenode entrypoint
22 lines
841 B
Bash
Executable File
22 lines
841 B
Bash
Executable File
#!/bin/sh
|
|
set -euo pipefail
|
|
|
|
if [[ ! -f "config/config.yaml" ]]; then
|
|
./storagenode setup --config-dir config --identity-dir identity
|
|
fi
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --config-dir config"
|
|
RUN_PARAMS="${RUN_PARAMS:-} --identity-dir identity"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --metrics.app-suffix=-alpha"
|
|
RUN_PARAMS="${RUN_PARAMS:-} --metrics.interval=30m"
|
|
RUN_PARAMS="${RUN_PARAMS:-} --contact.external-address=${ADDRESS}"
|
|
RUN_PARAMS="${RUN_PARAMS:-} --kademlia.operator.email=${EMAIL}"
|
|
RUN_PARAMS="${RUN_PARAMS:-} --kademlia.operator.wallet=${WALLET}"
|
|
RUN_PARAMS="${RUN_PARAMS:-} --console.address=:14002"
|
|
RUN_PARAMS="${RUN_PARAMS:-} --console.static-dir=/app"
|
|
RUN_PARAMS="${RUN_PARAMS:-} --storage.allocated-bandwidth=${BANDWIDTH}"
|
|
RUN_PARAMS="${RUN_PARAMS:-} --storage.allocated-disk-space=${STORAGE}"
|
|
|
|
exec ./storagenode run $RUN_PARAMS "$@"
|