Skip to content

Commit

Permalink
fix: use ipv4 localhost to fix docker defaulting to ipv6 and breaking…
Browse files Browse the repository at this point in the history
… url parsing
  • Loading branch information
zone117x committed Apr 12, 2024
1 parent 4d11d85 commit 0a2c0e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.e2e
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ENV DATA_DIR=/chainstate/stacks-blockchain-data
ENV BTC_ADDR=miEJtNKa3ASpA19v5ZhvbKTEieYjLpzCYT
ENV BTC_ADDR_WIF=cStMQXkK5yTFGP3KbNXYQ3sJf2qwQiKrZwR9QJnksp32eKzef1za
ENV MINER_SEED=9e446f6b0c6a96cf2190e54bcd5a8569c3e386f091605499464389b8d4e0bfc201
ENV BITCOIN_PEER_HOST=localhost
ENV BITCOIN_PEER_HOST=127.0.0.1
ENV BITCOIN_PEER_PORT=18444
ENV BITCOIN_RPC_PORT=18443
ENV BITCOIN_RPC_USER=btc
Expand Down Expand Up @@ -165,7 +165,7 @@ RUN <<EOF
STACKS_PID=$!

while true; do
HEIGHT=$(curl -s localhost:20443/v2/info | jq '.burn_block_height')
HEIGHT=$(curl -s 127.0.0.1:20443/v2/info | jq '.burn_block_height')
if [ "$HEIGHT" = "101" ]; then
echo "Stacks node caught up to Bitcoin block $HEIGHT"
break
Expand All @@ -183,7 +183,7 @@ RUN <<EOF
echo "Current Bitcoin chain height: $chain_height"

while true; do
HEIGHT=$(curl -s localhost:20443/v2/info | jq '.burn_block_height')
HEIGHT=$(curl -s 127.0.0.1:20443/v2/info | jq '.burn_block_height')
if [ "$HEIGHT" = "$chain_height" ]; then
echo "Stacks node caught up to Bitcoin block $HEIGHT"
break
Expand Down

0 comments on commit 0a2c0e2

Please sign in to comment.