Ampath-Test-Environment
A replica of the Ampath production environment deployed in a docker environment
Configuring Database
To Extract the database, run the following commands in order
cd dbdump/amrsdb
cat amrs_part* > ../dbdump/amrs.sql
Configuring nginx webserver
Change the ip address in default.conf
to your local address obtained by running the following command:
ifconfig <interface> | grep inet | grep -v inet6 | awk '{print $2}'
Running Applications
docker-compose up -d
Accessing Applications
To access the deployed applications use the following urls:
- http://localhost/amrs (openmrs instance)
- http://localhost/ng2-amrs/# (Ampath POC)
- http://localhost/form-builder/# (Ampath POC form builder)
- http://localhost/user_management_app-amrs/# (Ampath POC user management)
Using Apache Airflow
Once done and the servers have been started, open your browser and head over to http://localhost:8092
and you should see the airflow DAGs. Make sure to add your MySQL connection credentials under the the Admin -> Connections
tab. The Connection ID must be amrs_slave_conn
. After that, head back to DAGs and trigger the etl_jobs_realtime
DAG.