Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
2 | |||||
3 | cd ssl | ||||
4 | ./gen-certs.sh clean | ||||
5 | cd .. | ||||
6 | |||||
7 | COMPOSE_LOGS_FILE=${WORKSPACE}/archives/containers_logs/docker-compose.log | ||||
8 | docker-compose logs > ${COMPOSE_LOGS_FILE} | ||||
9 | docker-compose down | ||||
10 | docker-compose rm -f | ||||
11 | |||||
12 | docker network rm ${CONTAINERS_NETWORK} | ||||
13 | |||||
14 | if grep "LEAK:" ${COMPOSE_LOGS_FILE}; then | ||||
15 | echo "WARNING: Memory leak detected in docker-compose logs." | ||||
16 | fi |