Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Tip

This setup includes setting up crater into your own PC using docker

Prerequisites:-

...

Code Block
docker-compose --profile crater-atomfeed --profile openmrs up -d

If all (crater,crater-atomfeed and openmrs ) are up then your console will show :-

...

To Check the logs follow the steps:-

  • Code Block
    languagenone
    docker ps | grep <name of the container whose logs you want to check>

    Image Added


    Through the above command you will get the container ID of the container whose logs you want to check and will also show whether the container is up or not

  • Code Block
    languagenone
    docker logs -f <CONTAINER ID>

    Image Added

If the docker container are up and running fine then you crater setup will be done successfully , run crater on localhost:81(default mentioned port in bahmni-docker).

If during development you want to make any change in the backend code of crater-atomfeed then maven build the backend code a jar will be created paste it in Dockerfile in package->docker->Dockerfile now build the docker project using the command

...

Code Block
languagenone
docker-compose --profile openmrs --profile crater --profile crater-atomfeed up -d

Tip

Success

Once you are done with the setup try running crater on the port mention in the docker compose file under crater-nginx section.