#!/bin/bash # build docker build . -t mapserver docker run --name mapserver --rm \ --network host \ -v $(pwd)/integration-test-world:/app \ mapserver & function cleanup { # cleanup docker stop mapserver } trap cleanup EXIT bash -c 'while ! tile.png file tile.png | grep "PNG image data" || exit 1