On Docker#

Install Docker and docker-compose based on your operating system .

Steps to run the Belize simulation in a docker environment

  1. Clone the gcbm-container branch of GCBM Belize using the command

git clone -b gcbm-container https://github.com/moja-global/gcbm.belize
  1. Navigate into GCBM.Belize

cd gcbm.belize
  1. Use docker-compose to build the image

docker-compose up -d
  1. Run the container using the command

docker exec -it gcbm-belize /bin/bash
  1. Inside the running docker container, run

cd /server/gcbm_project
  1. Start the simulation using

/opt/gcbm/moja.cli --config_file gcbm_config.cfg --config_provider provider_config.json

If there are existing images cached on your machine you may need to docker pull ghcr.io/moja-global/rest_api_gcbm:master and build the container using docker-compose -d –force-recreate