savannahghi / kenya-emr-releases

KenyaEMR releases repackaged to ease deployment automation.
MIT License
0 stars 1 forks source link
kenyaemr openmrs

KenyaEMR Releases

This repository contains releases for OpenMRS-based EMR for the Kenya Ministry of Health(MoH), KenyaEMR. KenyaEMR is developed and maintained by Palladium Kenya. These releases are similar to those found on the official release page here. The only difference is that the releases found in this repository are repackaged to conform to the directory structure listed below. The purpose of this repository is to provide a standard structure to KenyaEMR releases making it easier to create deployment automation scripts.

Archive directory structure

.
KenyaEMR-v{x.y.z}.tar.xz
└── kenya-emr-release-content - Release content root folder.
    ├── configuration - Extra configurations needed to run KenyaEMR.
    ├── databases - Database dumps to restore for a fresh installation.
    |   ├── openmrs.sql - The main database dump.
    |   └── *.sql - Other database dumps (optional).
    ├── frontend - Assets and static files required to render the UI.
    ├── migrations - Database migration files.
    |   ├── install - SQL migration files to run during installation.
    |   |   └── *.sql (optional)
    |   ├── post_install - SQL migration files to run after installation.
    |   |   └── *.sql (optional)
    |   ├── upgrade - SQL migration files to run during an upgrade.
    |   |   └── *.sql (optional)
    |   └── post_upgrade - SQL migration files to run after an upgrade.
    |       └── *.sql (optional)
    ├── modules - OpenMRS module files (omod) that constitute this release.
    |   └── *.omod
    ├── extra_modules - For more details on this, see the section on `Adding extra-modules`
    ├── webapps - War files to deploy to a servlet container.
    |   └── openmrs.war - The OpenMRS war file.
    └── README.md - Readme file with additional info about this release (optional).

Things to note:

Deployment

This section lists the steps to follow during deployment of KenyaEMR. The steps are split into two sections: Routine deployment and Extra modules deployment. Each section includes the actions for fresh installation and upgrade of an existing installation. Note that whatever is listed here are just the general guidelines of the steps to follow and might not be sufficient/accurate for each release. As such, whenever a release has deployment steps that deviate from what is listed here, that will always be indicated on the README file included in the release.

1) Routine deployment

Installation

Upgrade

2) Extra modules deployment

These are modules that are not part of the standard kenyaEMR module deployment i.e they're not found packaged in the modules directory.
These modules are not required to run KenyaEMR, but we use them internally in our KenyaEMR deployments. You can safely ignore them.


KenyaEMR-v{x.y.z}.tar.xz
└── kenya-emr-release-content - Release content root folder.
    .
    .
    └── extra_modules - OpenMRS module files (omod) that are not part of official KenyaEMR release
        ├── module_x - Directory containing extra module, typically named same as <module_name>
        |    └── migrations - Database migration files. Follows the same hierarchy as shown in parent folder
        |           ├── install - SQL migration files to run during installation.
        |           |   └── *.sql (optional)
        |           ├── post_install - SQL migration files to run after installation.
        |           |   └── *.sql (optional)
        |           ├── upgrade - SQL migration files to run during an upgrade.
        |           |   └── *.sql (optional)
        |           ├── post_upgrade - SQL migration files to run after an upgrade.
        |           |   └── *.sql (optional)
        |           └── module_x.omod - the actual omod file. Must be named as <module_name>.omod
        └── module^n - Other extra modules will follow the same hierarchy as above.
                └── migrations ...
                     ├── install
                     .      .......
                     .         ......
                     .            .....
                     └── module^n.omod 

Installation

Upgrade

License

MIT License

Copyright (c) 2023, Savannah Informatics Global Health Institute