Skip to content

Commit 52972cf

Browse files
solana docker internal link fix
1 parent 02056bf commit 52972cf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ jobs:
3535
solana-test-validator --reset --rpc-port 8899 --limit-ledger-size 50000000 --url https://api.devnet.solana.com \
3636
--clone ETGtqwDKEm1Z9gq6FdvYUfyDuUZr7g4UdPSmyNLVGriX \
3737
--clone 7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE &
38+
- name: Update solana_localchain_chain_config.json with host IP
39+
run: |
40+
HOST_IP=$(ip route | awk '/default/ { print $3 }')
41+
echo "Host IP detected: $HOST_IP"
42+
jq --arg rpc_url "http://$HOST_IP:8899" '.public_rpc_url = $rpc_url' e2e/solana_localchain_chain_config.json > e2e/solana_localchain_chain_config_updated.json
43+
mv e2e/solana_localchain_chain_config_updated.json e2e/solana_localchain_chain_config.json
44+
cat e2e/solana_localchain_chain_config.json
45+
3846
- name: Install Anchor CLI
3947
run: cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
4048
- name: Add Anchor to PATH

0 commit comments

Comments
 (0)