1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-26 03:52:50 +02:00

Cleanup containers

This commit is contained in:
Tim Möhlmann 2018-10-06 16:03:07 +03:00
parent 4133bab280
commit 42f557ff38
No known key found for this signature in database
GPG Key ID: AFABC30066A39335

View File

@ -33,12 +33,24 @@ container_logs() {
done
}
clean() {
docker-compose -f tests/compose/run.yml -p $DOCKER_ORG down || exit 1
rm -fv .env
}
# Cleanup before callig exit
die() {
clean
exit $1
}
for file in tests/compose/*.env ; do
cp $file .env
docker-compose -f tests/compose/run.yml -p $DOCKER_ORG up -d
sleep 1m
docker ps -a
container_logs
containers_check || exit 1
containers_check || die 1
clean
done