Add 'rebuild.sh' to rebuild a docker image
This commit is contained in:
parent
5905847b1c
commit
a25c12b0fa
6 changed files with 57 additions and 11 deletions
|
|
@ -6,14 +6,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|||
cd "$DIR"
|
||||
source "$DIR/lib/lib.sh"
|
||||
|
||||
# update_stack fully updates a docker-compose stack in the given location.
|
||||
function update_stack() {
|
||||
cd "$1"
|
||||
docker-compose pull
|
||||
docker-compose build --pull
|
||||
docker-compose up -d
|
||||
}
|
||||
|
||||
log_info "=> Rebuilding and restarting 'web' stack"
|
||||
update_stack "$DEPLOY_WEB_DIR"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue