sequencescape icon indicating copy to clipboard operation
sequencescape copied to clipboard

Deploy Limber and SS

Open harrietc52 opened this issue 2 years ago • 1 comments

  • [x] UAT
  • [x] Training
  • [x] Production

Steps to deploy to prod:

  1. Deploy print_label_templates

ansible-playbook -i environments/<env>/hosts deploy_print_label_templates.yml

  1. Check if the new template is created in the PMB server path - cd /var/lib/sprint/label_templates/

In Sequencescape:

  1. Deploy Sequencecape

ansible-playbook -i environments/<env> deploy_sequencescape.yml -e "github_branch=v14.15.2" -e "full_deploy=false reload_nginx=true skip_migrations=false with_quant_files=false"

  1. Check if the migration to update the template is completed successfully in barcode_printer_type table in sequenscape_ database.

  2. Run script in Ruby console https://gitlab.internal.sanger.ac.uk/psd/data-patch-archive/-/merge_requests/8

In Limber:

  1. Deploy Limber

ansible-playbook -vD deploy_limber.yml -i environments/<env> -e "github_branch=v3.31.1" -e "full_deploy=true reload_nginx=true"

  1. Run the rake task bundle exec rake pmb:register_label_templates manually

  2. Check if a new record is added for the template in label_templates table in print_my_barcode_ DB

Steps to rollback:

In Sequencescape:

  1. bundle exec rake db:migrate:status

  2. Rollback the last run migration - bundle exec rake db:rollback STEP=2(Check If there are migrations from other stories merged)

  3. Deploy the previous release tag

ansible-playbook -i environments/<env> deploy_sequencescape.yml -e "github_branch=v14.15.1" -e "full_deploy=false reload_nginx=true skip_migrations=false with_quant_files=false"

In Limber:

Deploy the previous release tag

ansible-playbook -vD deploy_limber.yml -i environments/<env> -e "github_branch=v3.30.0" -e "full_deploy=true reload_nginx=true"

harrietc52 avatar Oct 25 '22 15:10 harrietc52

Limber develop -> master PR https://github.com/sanger/limber/pull/1182 Sequencescape develop -> master PR https://github.com/sanger/sequencescape/pull/3690

harrietc52 avatar Oct 25 '22 15:10 harrietc52