mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-26 03:52:50 +02:00
Cleanup containers
This commit is contained in:
parent
4133bab280
commit
42f557ff38
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user