An easy option for OpenShift deployment especially useful for demos is using a quickstart cartridge, which allows to get started with OpenMRS in literally few minutes.
Step-by-step guide
- Add a DIY cartridge.
- Add MySQL cartridge to the previously created one (OpenShift console -> cartridge -> Databases -> Add MySQL).
- Prepare to change the cartridge:
- Clone its repository:
git clone ssh://$OPENSHIFT_APP_UUID@$OPENSHIFT_APP_DNS/~/git/openmrs.git/
Move to the resulting directory:
cd openmrs/
- Clone its repository:
- Deploy the QS cartridge:
git remote add upstream -m master git@github.com:ixWDE4eR/openshift-openmrs-quickstart.git
git pull -s recursive -X theirs upstream master
git push
- Restart the cartridge.
- Proceed to high-level OpenMRS configuration via browser. You should not select 'Simple' as type of installation as it assumes having MySQL root, etc.
Related articles