Use the following docker-compose file. It will build directly from this gist.
To be more stable, copy the Dockerfile and build on your own.
version: "3.3"
services:
structure-test:
build: https://gist.github.com/kekru/f650dc96fd85f0fb7dcacea6f8d216ea.git
image: structure-test
environment:
- TEST_IMAGE=image-to-test
- TEST_CONFIG=/test.yml
volumes:
- ./test.yml:/test.yml:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
Be sure that you have a test.yml beside your docker-compose.yml, which defines your container-structure-test config.
Replace image-to-test
with the image's name, that you want to test.
Start the test with docker-compose run structure-test