CARLI/select

Script to load new images on production server

Closed this issue · 2 comments

Will need to load the new images after they are transferred, potentially remove the old ones, and restart the docker-compose stack.

Strategy:

Jenkins builds and pushes new tarballs of images. We up the version numbers as appropriate. This is just for moving new images to the host, not deploying.

We make a separate repo that only contains the docker-compose file, with explicit version tags for the web and middleware images. When we want to re-deploy test or production we change the version number by hand, commit and merge to the right branch. Jenkins then pulls the repo on the server, and re-runs the docker-compose to run the new images.

It would be good to gzip the saved images before transferring them

This is just an scp of the tarball, a docker image load -i, and a restart of docker-compose