-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dockerfile updates for archive node (#68)
- Loading branch information
1 parent
e7bca36
commit 2e088a9
Showing
8 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[supervisord] | ||
logfile=/riveruser/supervisord/logs/supervisord.log ; (main log file;default $CWD/supervisord.log) | ||
pidfile=/riveruser/supervisord/logs/supervisord.pid | ||
nodaemon=true | ||
loglevel=info | ||
logfile=/dev/stdout | ||
logfile_maxbytes=0 | ||
|
||
[program:archive_node] | ||
command=/usr/bin/stream_node archive | ||
directory=/riveruser/stream_node | ||
autostart=true | ||
autorestart=false | ||
user=riveruser | ||
stdout_logfile=/dev/stdout | ||
stdout_logfile_maxbytes=0 | ||
stderr_logfile=/dev/stderr | ||
stderr_logfile_maxbytes=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
if [ -z "$RUN_MODE" ]; then | ||
echo "RUN_MODE is not set" | ||
exit 1 | ||
elif [ "$RUN_MODE" == "full" ]; then | ||
echo "Running full node" | ||
exec /usr/bin/supervisord -c /etc/full_node.supervisord.conf | ||
elif [ "$RUN_MODE" == "archive" ]; then | ||
echo "Running archive node" | ||
exec /usr/bin/supervisord -c /etc/archive_node.supervisord.conf | ||
else | ||
echo "Unknown RUN_MODE: $RUN_MODE" | ||
exit 1 | ||
fi |