Closed mrkschan closed 8 years ago
@ruflin Have a look :)
A few questions:
make testsuite
?-short
flag this was not possible.Do you mean sometimes the docker-compose stop
would fail which results in false negative CI test result?
Indeed, the docker-compose stop
here is to reset the Nginx stats. Shall I just add a frozen stats (e.g. /fake/status) for testing instead of using real Nginx stats?
It could happen in the past, that a build started to hang so docker-compose stop was never called. Be aware that these are edge cases, but it is what lead to our current implementation.
I really like to use "real" nginx to test the stats as it makes it possible to also test different versions. Be aware that docker-compose stop
does not remove the volumes, docker-compose rm
is needed in addition to make sure you always start "clean".
Yea, I'm aware of that but Nginx keeps stats in memory so we don't have to remove the container. Asking Nginx to reload would also do the trick.
Perhaps, we could also use docker-compose up --force-recreate
?
Good to know about nginx. I was thinking in a more general way how to handle it. --force-recreate would work for nginx but not for services that store data on volumes: https://github.com/docker/compose/issues/2127
35