suchwow/run_wallets.sh

35 lines
825 B
Bash
Raw Normal View History

2020-07-15 08:18:13 +00:00
#!/bin/bash
2020-10-06 08:40:50 +00:00
set -e
set +x
2021-09-14 07:59:06 +00:00
# mainnet wownero
export $(cat .env)
2020-10-06 08:40:50 +00:00
if [ ! -d "$WALLET_PATH" ]; then
# initialize new wallet and retain seed
docker run --rm -it --name suchwow-wallet-init \
-v $WALLET_PATH:/root \
2021-09-14 07:59:06 +00:00
lalanza808/wownero:latest \
2020-10-06 08:40:50 +00:00
wownero-wallet-cli \
--daemon-address $DAEMON_URI \
--generate-new-wallet /root/wow \
--password $WALLET_PASS
fi
2021-09-14 07:59:06 +00:00
# run rpc process
docker run --restart=always -d --name suchwow-wallet-rpc \
2020-10-06 08:40:50 +00:00
-v $WALLET_PATH:/root \
-p 8888:8888 \
2021-09-14 07:59:06 +00:00
lalanza808/wownero:latest \
2020-10-06 08:40:50 +00:00
wownero-wallet-rpc \
--daemon-address $DAEMON_URI \
--wallet-file /root/wow \
--password $WALLET_PASS \
--rpc-bind-port 8888 \
--rpc-bind-ip 0.0.0.0 \
--confirm-external-bind \
--rpc-login "$WALLET_RPC_USER:$WALLET_RPC_PASS" \
--log-file /root/rpc.log