Skip to content

Commit

Permalink
docker: update entrypoints (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
tynes authored Oct 6, 2020
1 parent 9eca5e2 commit b1edfd9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions docker/dev_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ TARGET_GAS_LIMIT=${TARGET_GAS_LIMIT:-8000000}
TX_INGESTION=${TX_INGESTION:-false}
TX_INGESTION_DB_HOST=${TX_INGESTION_DB_HOST:-localhost}
TX_INGESTION_POLL_INTERVAL=${TX_INGESTION_POLL_INTERVAL:-3s}
TX_INGESTION_DB_USER=${TX_INGESTION_DB_USER:-test}
TX_INGESTION_DB_PASSWORD=${TX_INGESTION_DB_PASSWORD:-test}

if [ -n "$REBUILD" ]; then
echo -e "\nRebuilding geth\n"
Expand All @@ -30,6 +32,8 @@ else
--gcmode=archive \
--verbosity "6" \
--txingestion.enable="$TX_INGESTION" \
--txingestion.dbhost "$TX_INGESTION_DB_HOST" \
--txingestion.pollinterval "$TX_INGESTION_POLL_INTERVAL"
--txingestion.dbhost=$TX_INGESTION_DB_HOST \
--txingestion.pollinterval=$TX_INGESTION_POLL_INTERVAL \
--txingestion.dbuser=$TX_INGESTION_DB_USER \
--txingestion.dbpassword=$TX_INGESTION_DB_PASSWORD
fi
10 changes: 5 additions & 5 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ geth --dev \
--nousb \
--gcmode=archive \
--verbosity "6" \
--txingestion.enable="$TX_INGESTION" \
--txingestion.dbhost "$TX_INGESTION_DB_HOST" \
--txingestion.pollinterval "$TX_INGESTION_POLL_INTERVAL" \
--txingestion.dbuser "$TX_INGESTION_DB_USER" \
--txingestion.dbpassword "$TX_INGESTION_DB_PASSWORD"
--txingestion.enable=$TX_INGESTION \
--txingestion.dbhost=$TX_INGESTION_DB_HOST \
--txingestion.pollinterval=$TX_INGESTION_POLL_INTERVAL \
--txingestion.dbuser=$TX_INGESTION_DB_USER \
--txingestion.dbpassword=$TX_INGESTION_DB_PASSWORD

0 comments on commit b1edfd9

Please sign in to comment.