setting up the openhim. components core - //github.com/jembi/openhim mediators – e.g. openempi...

6
Setting up the OpenHIM

Upload: marcus-hawkins

Post on 26-Dec-2015

235 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter

Setting up the OpenHIM

Page 2: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter

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

Page 3: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter

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

Page 4: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter

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

Page 5: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter

• 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

Page 6: Setting up the OpenHIM. Components Core - //github.com/jembi/openhim Mediators – e.g. OpenEMPI adapter

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