#!/bin/shif["$#"-ne 1 ];thenecho"usage: $0 <docker-image-ref>"echo"runs this test on image matching <docker-image-ref>"exit 1fi# this tag is used by the dockerfiles in# {data, server, client, bootstrap}tag=zaqwsx_ipfs-test-img# could use set -v, but i dont want to see the comments...img=$(docker images | grep$1 | awk'{print $3}')echo"using docker image: $img ($1)"echo docker tag -f$img$tagdocker tag -f$img$tagecho"fig build --no-cache"fig build --no-cacheecho"fig up --no-color | tee build/fig.log"fig up --no-color | tee build/fig.log# save the ipfs logs for inspectionecho"make save_logs"make save_logs# fig up won't report the error using an error code, so we grep the# fig.log file to find out whether the call succeededecho'tail build/fig.log | grep "exited with code 0"'tail build/fig.log | grep"exited with code 0"