@@ -34,21 +34,21 @@ services:
3434 evm_loader:
3535 container_name: evm_loader
3636 environment:
37- - SOLANA_URL=$SOLANA_URL
37+ - SOLANA_URL=${ SOLANA_URL}
3838 networks:
3939 - net
4040 command: bash -c "create-test-accounts.sh 1 && deploy-evm.sh && /opt/spl-token create-account HPsV9Deocecw3GeZv1FkAPNCBRfuVyfw9MMwjwRe1xaU && /opt/spl-token mint HPsV9Deocecw3GeZv1FkAPNCBRfuVyfw9MMwjwRe1xaU 1000000000 --owner /opt/evm_loader-keypair.json -- HX14J4Pp9CgSbWP13Dtpm8VLJpNxMYffLtRCRGsx7Edv"
4141 proxy:
4242 environment:
43- - SOLANA_URL=$SOLANA_URL
43+ - SOLANA_URL=${ SOLANA_URL}
4444 ports:
4545 - 9091:9090
4646 faucet:
4747 image: neonlabsorg/faucet:latest
4848 environment:
4949 - FAUCET_RPC_BIND=0.0.0.0
5050 - FAUCET_RPC_PORT=3333
51- - SOLANA_URL=$SOLANA_URL
51+ - SOLANA_URL=${ SOLANA_URL}
5252 - NEON_ETH_MAX_AMOUNT=50000
5353 - EVM_LOADER=53DfF883gyixYNXnM7s5xhdeyV8mVk9T4i2hGV9vG9io
5454 - NEON_TOKEN_MINT=HPsV9Deocecw3GeZv1FkAPNCBRfuVyfw9MMwjwRe1xaU
@@ -63,10 +63,10 @@ services:
6363 entrypoint: /opt/faucet/faucet --config /opt/proxy/faucet.conf run
6464 airdropper:
6565 environment:
66- - SOLANA_URL=$SOLANA_URL
66+ - SOLANA_URL=${ SOLANA_URL}
6767 indexer:
6868 environment:
69- - SOLANA_URL=$SOLANA_URL
69+ - SOLANA_URL=${ SOLANA_URL}
7070EOF
7171
7272
@@ -75,14 +75,12 @@ SERVICES=$(docker-compose -f docker-compose-test.yml config --services | grep -v
7575
7676
7777# Check if Solana is available, max attepts is 100(each for 2 seconds)
78- CHECK_COMMAND=` curl $SOLANA_URL -X POST -H " Content-Type: application/json" -d ' {"jsonrpc":"2.0","id":1, "method":"getHealth"}' `
78+ CHECK_COMMAND=` curl ${ SOLANA_URL} -X POST -H " Content-Type: application/json" -d ' {"jsonrpc":"2.0","id":1, "method":"getHealth"}' `
7979MAX_COUNT=100
8080CURRENT_ATTEMPT=1
81- while [[ " $CHECK_COMMAND " != " {\" jsonrpc\" :\" 2.0\" ,\" result\" :\" ok\" ,\" id\" :1}" && $CURRENT_ATTEMPT -gt $MAX_COUNT ]]
81+ while [[ " $CHECK_COMMAND " != " {\" jsonrpc\" :\" 2.0\" ,\" result\" :\" ok\" ,\" id\" :1}" && ${ CURRENT_ATTEMPT} -gt ${ MAX_COUNT} ]]
8282do
8383 CHECK_COMMAND=` curl $SOLANA_URL -X POST -H " Content-Type: application/json" -d ' {"jsonrpc":"2.0","id":1, "method":"getHealth"}' `
84- echo $CHECK_COMMAND >> /tmp/output.txt
85- echo " attempt: $CURRENT_ATTEMPT "
8684 (( CURRENT_ATTEMPT= CURRENT_ATTEMPT+ 1 ))
8785 sleep 2
8886done ;
0 commit comments