Sign inSign up

kenyahmis/kenyaemr

By kenyahmis

Updated about 5 years ago

Image
1

402

kenyahmis/kenyaemr repository overview

Step 1: Download docker, install and sign up/sign in from https://hub.docker.com/

Step 2:

Pull the EMR image from Docker hub.

i. Open terminal/command prompt/windows power shell ii. Input command: docker login iii. enter credentials

NB: In case you experience permission denied error. Run command below. For Linux environment: sudo chmod 666 /var/run/docker.sock

iv. Pull mysql 5.6 and KenyaEMR image from the folder containing docker-compose.yml file attached:

docker-compose up -d

Step 3: KenyaEMR Setup in Docker environment

i. Login to the docker container

docker exec -it kenyaemrdocker_kenyaemr_1 /bin/bash

ii. delete the openmrs connection file located /root/.Openmrs/

rm -rf /root/.OpenMRS/openmrs-runtime.properties

iii. Exit from container.

Use ctrl + D shortcut to exit

iv. restart tomcat servlet engine docker restart kenyaemr-docker_kenyaemr_1

Step 4 i. Open browser and configure the database http://localhost:8082/openmrs

a. Click ok b. Choose advanced option and click ok c. On the address change localhost:3306 with mysql container name kenyaerm-docker_kenyaemr-mysql_1:3306 d. In steps 1 of 5 and step 2 of 5 in the OpenMRS Installation Wizard Use ‘root’ as the username and ‘test’ as password.

e. Click next until successfully getting the OpenMRS admin page

Step 5: Update your kenyaEMR environment with the latest builds To copy use docker cp SRC_PATH to the DEST_PATH e.g.

i. copy the modules into the modules directory of the container NB: Ensure this has the latest module docker cp modules kenyaerm-docker_kenyaemr_1:/root/.OpenMRS/

Step 6: Copy the openmrs db to kenyaemr-mysql container

docker cp blank17.3.3db.sql kenyaerm-docker_kenyaemr-mysql_1:/home

Login to Mysql Container

docker exec -it kenyaerm-docker_kenyaemr-mysql_1 /bin/bash

Mysql -u root – p test

ii. Copy the latest db to your openmrs database in mysql source /home/blank18.0.1db.sql

iii. Run below queries

grant all privileges on . to 'openmrs_user'@'%';

grant all privileges on . to 'openmrs_user'@'localhost';

flush privileges;

Tag summary

Content type

Image

Digest

Size

367.4 MB

Last updated

about 5 years ago

docker pull kenyahmis/kenyaemr