Run Pre-built Docker Images

If we want to run the application we can use the pre-built docker images by following few steps.

We have to download the following repository from Github: Infrastructure [Link].

Then we have to execute the following commands.

      $ cd Infrastructure
      $ sudo ./run-shr-cluster.sh
      

Build Docker Images

If it requires to change in source code then we have to build the docker images again.

Pre-requisites
  • JDK 1.8
Github Repositories

We have to clone/download the following Github repositories:

  • Identity Service [Link]
  • HealthID Service [Link]
  • MCI Service [Link]
  • Terminology Service [Link ]
  • FreeSHR Service [Link]
  • HIE Docker [Link]

Building the docker images and running the docker containers need the following steps to follow:

      $ cd HIE-Docker
      $ ./build-all-services.sh
      $ sudo ./create-shr-cluster.sh
      

build-all-services.sh command build the services. create-shr-cluster.sh command build docker images using Dockerfile.

On some machines, create-shr-cluser.sh script may fail to execute because of missing docker-compose command. In that case we have to replace docker-compose by docker compose.

We can also run the individual services as gradle projects. It will require running MySQL 3.6 and Cassandra locally.