Skip to content

Commit

Permalink
lk86/fix-entrypoint Make entrypoint backward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
lk86 committed Feb 15, 2022
1 parent e6db28e commit 86bfacf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dockerfiles/scripts/daemon-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ declare -a LOG_FILES=('mina.log')
# mina-best-tip.log is useful for organizing a hard fork and is one way to monitor new blocks as they are added, but not critical
declare -a VERBOSE_LOG_FILES=('mina-stderr.log' '.mina-config/mina-prover.log' '.mina-config/mina-verifier.log' '.mina-config/mina-best-tip.log')

EXTRA_FLAGS=""

# Attempt to execute or source custom entrypoint scripts accordingly
# Example: mount a mina-env file with variable evironment variables to source and pass to the daemon
for script in /entrypoint.d/*; do
Expand All @@ -25,6 +27,7 @@ for script in /entrypoint.d/*; do
fi
done

set +u # allow these variables to be unset
# Support flags from .mina-env on debian
if [[ ${PEER_LIST_URL} ]]; then
EXTRA_FLAGS+=" --peer-list-url ${PEER_LIST_URL}"
Expand All @@ -44,6 +47,8 @@ if [[ ${VERBOSE} ]]; then
echo "[Debug] Extra Flags: ${EXTRA_FLAGS}"
fi

set -u

# Mina daemon initialization
mkdir -p .mina-config
# Create all of the log files that we will tail later
Expand Down

0 comments on commit 86bfacf

Please sign in to comment.