Upload
marcus-hawkins
View
237
Download
0
Tags:
Embed Size (px)
Citation preview
Setting up the OpenHIM
Components
•Core - https://github.com/jembi/openhim•Mediators – e.g. OpenEMPI adapter https://github.com/jembi/openhim-openempi-patient-adapter•Error Management UI - https://github.com/jembi/openhim-webui
Installing Core
•Install git – sudo apt-get install git•Checkout the core project
• git clone https://github.com/jembi/openhim.git
•Setup maven in eclipse – m2e• Help -> Install new software…• http://download.eclipse.org/technology/m2e/
releases• Uncheck the slf4j component, it’s not needed
•Import existing maven project into Mule Studio• File -> Import… -> Maven > Existing maven projects
Maven
•It may take a while to download all the maven dependencies required•We’ve provided an .m2 repository with all the required dependencies
• Get the file m2.zip from the flash stick• unzip m2.zip• mv m2 ~/.m2
• We will use puppet to setup all the dependencies• Create a folder puppet_setup• cp {workspace}/openhim/infrastructure/env/* puppet_setup/• cp {workspace}/openhim/src/main/resources/*.sql
puppet_setup/• cp {workspace}/openhim/src/main/resources/ldap-auth-pre-
prod.ldif puppet_setup/• sudo apt-get install puppet• cd /etc/puppet/modules• sudo unzip {somewhere}/puppet_setup/openldap.zip• cd {somewhere}/puppet_setup• Edit the file openhim.pp and remove the Mule ESB section• (optional) Change the mysql password• Change the source_dir variable to point to puppet_setup• sudo puppet apply openhim.pp
• Alternatively you can install mysql and openldap manually
Building the OpenHIM
•Build the project using Maven:• Right click on the project and select Run as -> Maven
Install
•To run the app• Right click on the project and select Run as -> Mule
Application