Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ services:
L1_PRIORITY_FEE_BUMP_PERCENTAGE: ""
L1_FIXED_PRIORITY_FEE_PER_GAS: ""
LOG_LEVEL: info
EXTRA_OPTS: ""
restart: unless-stopped
volumes:
sequencer-data: {}
Expand Down
17 changes: 17 additions & 0 deletions sequencer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ FLAGS=(
# — Append fixed mode flags
FLAGS+=(--archiver --node --sequencer)

# — Append any extra options provided by the user in EXTRA_OPTS
# If EXTRA_OPTS is set, split it the same way the shell would and append
# each resulting token to the FLAGS array. This preserves quoted groups.
if [ -n "${EXTRA_OPTS:-}" ]; then
# Disable pathname expansion while splitting
set -f
# shellcheck disable=SC2206
# Use eval to allow users to provide quoted options like '--flag "some value"'
eval "EXTRA_ARR=( $EXTRA_OPTS )"
# Re-enable pathname expansion
set +f

for opt in "${EXTRA_ARR[@]:-}"; do
FLAGS+=("$opt")
done
fi

echo "[INFO - entrypoint] Starting sequencer with flags:"
printf ' %q\n' "${FLAGS[@]}"

Expand Down