update portal scripts
This commit is contained in:
parent
e9aecafb09
commit
ba7cb64d34
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e # exit on first error
|
||||||
|
|
||||||
|
# get current working directory (pwd doesn't cut it)
|
||||||
|
cwd=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
|
|
||||||
|
# put the server down for maintenance
|
||||||
|
. ${cwd}/portal-down.sh
|
||||||
|
|
||||||
|
# stop the docker services
|
||||||
|
docker-compose down
|
||||||
|
|
||||||
|
# start the docker services
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
# enable the server again
|
||||||
|
. ${cwd}/portal-up.sh
|
|
@ -21,7 +21,7 @@ docker system prune --force
|
||||||
docker volume rm $(docker volume ls -q)
|
docker volume rm $(docker volume ls -q)
|
||||||
|
|
||||||
# build all container without cache
|
# build all container without cache
|
||||||
docker-compose build --no-cache
|
docker-compose build --no-cache --parallel --pull --quiet
|
||||||
|
|
||||||
# start the docker services
|
# start the docker services
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
Reference in New Issue