UCSC-MedBook / MedBook_

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

MedBook_

Build Status Stories in Ready

Build in docker and run:

git clone https://github.com/UCSC-MedBook/MedBook_.git

cd MedBook_

docker-compose -f docker-compose-build.yml build
docker-compose -f docker-compose-mongo.yml up -d

./scripts/prodStart.sh

Deploy to existing host, using Dockerhub images (without touching Mongo):

Update the checkout to get the latest image versions, then pull those images

cd MedBook_
git fetch
git pull
./dev-ops/prepare_for_deploy.sh

Enter tmux:

tmux a

Bring the existing dockers down: Ctrl-C in the appropriate tmux pane

Bring the new dockers up:

./scripts/prodStart.sh

And exit tmux: Ctrl-b , then press d

For setting up a new production machine, see here.

Documentation changes

For documention or devops-only changes that do NOT affect the docker images, add [skip ci] to the commit messages. This will prevent Travis from rebuilding (and if on master, pushing to dockerhub) the images.