Skip to content

Commit

Permalink
Merge pull request #108 from ARPA-Network/node-client-enhancement
Browse files Browse the repository at this point in the history
Node client Bugfixes
  • Loading branch information
wrinkledeth authored Jul 29, 2024
2 parents 6b0138c + 900938b commit 1dabb06
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/node-client/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
echo "Starting supervisord job with the following command:"
grep "command" /etc/supervisor/conf.d/supervisord.conf

# Run prep-cloudwatch-config.sh
echo "running prep-cloudwatch-config.sh"
/app/prep-cloudwatch-config.sh

# Check for existing log file, if it exists, archive it with the current date
if [ -f /app/log/node.log ]; then
echo "Existing node.log found"
archived_log_name="/app/log/node.log.$(date +%Y-%m-%d-%H-%M-%S)"
mv /app/log/node.log "$archived_log_name"
echo "renamed node.log to $archived_log_name"
fi

# Run supervisord
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
1 change: 1 addition & 0 deletions docker/node-client/prep-cloudwatch-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
######################################
echo "########################################"
# Run node-config-checker to compute wallet address from private key in config file
cd /app # Change to the app directory so that node-config-checker can find keystore
address=$(node-config-checker -c /app/config.yml)
echo "Computed wallet address: $address from config file."

Expand Down

0 comments on commit 1dabb06

Please sign in to comment.