Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.12 KB

update_dhis2.md

File metadata and controls

45 lines (30 loc) · 1.12 KB

Update DHIS2

We recommend to set up a test environment, follow migration procedures, restore backup of production, then update the test environment with the dhis2 version that you want.

If everything is fine, then replay update on production environment.

Procedures

Make a database backup and store it somewhere

sudo ./toolbox dhis2 dump dhis2

Update inventory with new product image

We release docker images of dhis2 versions https://hub.docker.com/r/blsq/dhis2/tags.

Update inventory with the new dhis2 version that you want.

 DHIS2_VERSION: "<dhis2_version>"

NB: Check https://github.com/BLSQ/ops-dhis2-images for other variables to add to the inventory if necessary.

Launch ansible playbook

cd ops-local-hosting
source env/bin/activate
ansible-playbook -i <inventory_path> playbooks/blsq.yml

Restart dhis2 and check the status

sudo systemctl restart dhis2
sudo systemctl status dhis2

Check the logs

journalctl -u dhis2