Add useful scripts

This commit is contained in:
rubenwardy 2019-11-21 22:27:21 +00:00
parent 33b2b38308
commit 77f8a79c51
2 changed files with 18 additions and 0 deletions

7
utils/start.sh Executable file

@ -0,0 +1,7 @@
#!/bin/bash
#
# Call from a docker host to build and start CDB.
#
sudo docker-compose up --build -d --scale worker=2

11
utils/update.sh Executable file

@ -0,0 +1,11 @@
#!/bin/bash
#
# Call from a docker host to rebuild and update running instances of CDB.
#
sudo docker-compose build app
sudo docker-compose build worker
sudo docker-compose up --no-deps -d app
sudo docker-compose up --no-deps --scale worker=2 -d worker