Versions Compared
Version | Old Version 6 | New Version Current |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Tip |
---|
Bahmni LITE comes with CIEL Concept dictionary, which comprises of over 50K medical terms. This can slow down the first time initialization of DB. To use a pre-loaded DB with CIEL dictionary, to decrease startup time, please follow these steps. |
decrease startup time, Bahmni publishes pre-loaded DBs based on mysql v5.6 and mysql v5.7. The default OpenMRS DB image of bahmni-lite points to the |
DB Images pre-loaded with CIEL concepts are:
bahmni/openmrs-db:1.0.0-lite-mysql5.6
: OpenMRS DB based on mysql v5.6bahmni/openmrs-db:
1.0.0-lite-mysql5.7
: OpenMRS DB based on mysql v5.7
These images can be used by changing the OPENMRS_DB_IMAGE_NAME variable in .env file of bahmni-lite
To start Bahmni with a fresh DB, perform the following one-time steps:
Note |
---|
If you have already started Bahmni, please make sure to bring down all the containers by running |
Change the OPENMRS_DB_IMAGE_NAME variable to
bahmni/openmrs-db:clinic-config
mysql:5.6
ormysql:5.7
in .env file of Bahmni Lite (this means use MySQL published fresh docker image)
Un-commentCode Block OPENMRS_DB_IMAGE_NAME=bahmni/openmrs-db:clinic-config
mysql:5.6
Set the
OPENMRS_DB_CREATE_TABLES
variable to'true'
in .env file of bahmni-liteComment out the volume mounts for
configuration_checksums
in openmrs and openmrs-db openmrsdb service in the docker-compose.yml of Bahmni Lite. This is done so Doing this will make sure that the initializer module does not re-execute executes the changelogs which are already executed and loaded into the database.Check the atomfeed creds in .env file. They should be as follows:
Code Block OPENMRS_ATOMFEED_USER=admin OPENMRS_ATOMFEED_PASSWORD=Admin123
Start Bahmni Lite (that’s it!)
Info |
---|
The DB dump with CIEL data is maintained here on github: https://github.com/Bahmni/clinic-config/tree/main/package/docker/resources |
. Note: the default initialiser configuration can be seen here. To run with your own “config”, see this documentation.
Code Block # Add a '#' in front of the configuration_checksum lines in volume sub-section of the individual services to comment them out # - 'configuration_checksums:/openmrs/data/configuration_checksums' # - 'configuration_checksums:/configuration_checksums'
Now start Bahmni LITE, and see the openmrs logs to understand when the initialiser logs finish execution.
Code Block # Start Bahmni LITE (in bahmni-lite/ subfolder) docker compose up -d # See OpenMRS Logs docker compose logs openmrs -f
Running Bahmni with Docker
Page Tree | ||||
---|---|---|---|---|
|