Tip |
---|
This setup includes setting up crater into your own PC using docker |
Prerequisites:-
Docker installed on your pc.
Clone Bahmni-docker into your system from https://github.com/Bahmni/bahmni-docker
Some prior knowledge about openmrs and crater-atomfeed.
...
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 language none docker ps | grep <name of the container whose logs you want to check>
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 notCode Block language none docker logs -f <CONTAINER ID>
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 | ||
---|---|---|
| ||
docker-compose --profile openmrs --profile crater --profile crater-atomfeed up -d |
Tip |
---|
SuccessOnce you are done with the setup try running crater on the port mention in the docker compose file under crater-nginx section. |