Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.38 KB

README.md

File metadata and controls

26 lines (19 loc) · 1.38 KB

Why

Used to build a MariaDB Docker Image with an OpenMRS dump.

While OpenMRS can start without this dump, having it available simplifies the initial startup process. Without the dump, OpenMRS requires a restart after the first launch to activate the oauth2 module. This is because during the initial setup process, a web filter is utilized, preventing all modules from starting up initially.

How to generate the dump and the docker image

the current dumps are:

  • dump/openmrs-2.5.12.sql.gz built for OpenMRS 2.5.12.
  • dump/openmrs-2.6.4.sql.gz built for OpenMRS 2.6.4. It's possible to create another dump by using the scripts in the folder dump-extract:
  1. Change if needed the OpenMRS Version in dump-extract/docker-compose.yml file ( from openmrs/openmrs-core:2.5.12 to openmrs/openmrs-core:X.Y.Z)
  2. run step-1-start-and-wait-until-ready.sh to start a new openMRS instance and wait until the end
  3. run step-2-extract-dump.sh <YOUR_VERSION> to extract the dump that will be moved to dump/
  4. Modify .github/workflow/publish-mariadb-docker-image.yml to create a image using this dump version
  5. See .github/workflow/publish-mariadb-2.6.4-docker-image.yml for an example

Improvements

it's possible to automate the full process but this operation is not often used so these steps are acceptable.