2021-06-14 04:56:10 +00:00
|
|
|
set -e
|
|
|
|
set -o xtrace
|
|
|
|
|
2021-12-29 21:01:57 +00:00
|
|
|
export ETH_FORWARD_ETH_CALLS=false
|
|
|
|
export DB_WRITE=true
|
2021-12-30 02:29:59 +00:00
|
|
|
export ETH_HTTP_PATH=""
|
|
|
|
export ETH_PROXY_ON_ERROR=false
|
2022-03-16 16:15:31 +00:00
|
|
|
export WATCHED_ADDRESS_GAP_FILLER_ENABLED=false
|
2021-12-29 21:01:57 +00:00
|
|
|
|
2021-06-14 04:56:10 +00:00
|
|
|
# Clear up existing docker images and volume.
|
|
|
|
docker-compose down --remove-orphans --volumes
|
|
|
|
|
|
|
|
# Build and start the containers.
|
2021-09-23 10:36:09 +00:00
|
|
|
# Note: Build only if `ipld-eth-server` or other container code is modified. Otherwise comment this line.
|
|
|
|
docker-compose -f docker-compose.test.yml -f docker-compose.yml build eth-server
|
2021-10-09 12:00:33 +00:00
|
|
|
docker-compose -f docker-compose.test.yml -f docker-compose.yml up -d ipld-eth-db dapptools contract eth-server
|
2021-06-14 04:56:10 +00:00
|
|
|
|
|
|
|
export PGPASSWORD=password
|
|
|
|
export DATABASE_USER=vdbm
|
|
|
|
export DATABASE_PORT=8077
|
|
|
|
export DATABASE_PASSWORD=password
|
|
|
|
export DATABASE_HOSTNAME=127.0.0.1
|
|
|
|
|
|
|
|
# Wait for containers to be up and execute the integration test.
|
|
|
|
while [ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8081)" != "200" ]; do echo "waiting for ipld-eth-server..." && sleep 5; done && \
|
|
|
|
while [ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8545)" != "200" ]; do echo "waiting for geth-statediff..." && sleep 5; done && \
|
2021-12-29 21:01:57 +00:00
|
|
|
make integrationtest
|