From c03c482d3650984dc8ec6d25bc85485b10d3b52c Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 21 Sep 2020 18:48:46 +0200 Subject: [PATCH] update portal upgrade script --- scripts/portal-upgrade.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/portal-upgrade.sh b/scripts/portal-upgrade.sh index 4d04f30e..bc81e80a 100755 --- a/scripts/portal-upgrade.sh +++ b/scripts/portal-upgrade.sh @@ -8,9 +8,18 @@ cwd=$(cd -P -- "$(dirname -- "$0")" && pwd -P) # put the server down for maintenance . ${cwd}/portal-down.sh -# rebuild and restart all docker containers -docker-compose build --no-cache +# stop the docker services docker-compose down + +# clear unused docker containers so we don't run into out of disk space +# it should be done after the container have been stopped and before +# building them again +docker system prune --force + +# build all container without cache +docker-compose build --no-cache + +# start the docker services docker-compose up -d # enable the server again