Docker containers exist for every part of the eSaude EMR ecosystem. This page describes where to find them, how to set them up and how to make changes.
Before you can use the containers, you must first install Docker Engine and docker-compose in your environment.
Pre-built images are hosted on Bintray, and the Docker- and docker-compose files are hosted on GitHub.
We use Travis CI to validate our container builds when we push new code to the GitHub repos.
eSaude EMR Platform(Retrospective Data Entry)
The eSaude EMR Platform, also known as the retrospective data entry system(RDE) comprises two containers - the tomcatcontainer and the mysql container.
Pre-built images for both of these containers are available in the platform-docker repository on Bintray.
Start by importing the current latest release of the clean database, make your changes, then export the new clean database(e.g. by using mysqldump). Finally, zip the new clean database and upload it as a new version on Bintray.
Update the RUN command in the Dockerfile
Update the mysql Dockerfile to refer to the latest database version that you just published to Bintray.
eSaude EMR Platform (Retrospective Data Entry)
wget https://raw.githubusercontent.com/esaude/esaude-platform-docker/master/docker-compose-prebuilt.yml
docker-compose -f docker-compose-prebuilt.yml pull
docker-compose -f docker-compose-prebuilt.yml up esaude-platform-mysql
docker-compose up
Modifications
To make changes to containers, clone theplatform-docker repoon GitHub and make your changes to thetomcatormysqlDockerfiles or artifacts.Database ChangesIf you need to make a change to the database, you need to do two things:Publish a new database toBintrayStart by importing the current latest release of the clean database, make your changes, then export the new clean database(e.g.by usingmysqldump). Finally, zip the new clean database and upload it as a new version onBintray.Update theRUNcommand in the DockerfileUpdate themysqlDockerfileto refer to the latest database version that you just published to Bintray.