publiclab/spectral-workbench

View on GitHub
Makefile

Summary

Maintainability
Test Coverage
define wait_for_container
    @while ! docker-compose logs web | grep "Web server started"; do\
        echo "Serving Spectral";\
        sleep 10;\
    done;
endef

redeploy-container:
    docker-compose build
    docker-compose down --volumes
    docker-compose up -d
    $(call wait_for_container)
    docker-compose logs