Using docker-composer create 3 containers: the first for containing nodeos started with the snapshot we downloaded, the second containing the postgres instance used by fill-pg, and one for containing the history-tools container which builds the fill-pg executable.
After the 3 containers are up, a query is done on the postgres container until the chain.block_info table has 5 elements and we also check that they are in ascending order.
The composer-docker.yml file can use these environment variables:
DOCKER_EOSIO_TAG, tag used for the eosio container
PEER_ADDR, ip address of p2p peer for syncing the blockchain initiated on eosio container
SNAPSHOT_FILE, path to the snapshot for the blockchain initiated on eosio container
DOCKER_HISTORY_TOOLS_TAG, tag used for the history-tools container
Add an integration test for fill-pg using this logic:
The composer-docker.yml file can use these environment variables: