In my project i am building about 200 containers I want to check in a smoke test if the containers are still running after a rebuild in pipeline.
I want to bring up the container with certain parameters and check if it is responding on ports (service being up), or run simple test inside the container. Best would be to use docker-compose for starting containers, so that paramateres can easily be configured.
Example for a nginx container
- run "nginx -t" inside the container to check if the container still has a valid configuration file
- check if nginx is exposing services on port 80 and 443
Similar for other containers, main topic is checking ports for rest services. After bringing up the container(s), the tests should be run and then the whole thing shoudl be shutdown again.
What is the best tool for doing such a thing automated - and not writing everything manually?