Hello Bahmni folks, I have been trying to setup bahmni-docker on an ARM64 device. But it looks like Bhamni standard and Lite (specifically the bahmni/openmrs-db image component ) is configured to run on amd64 architectures according to tags at https://hub.docker.com/_/alpine/tags this has caused errors like
Thank you for reaching out regarding your attempt to set up Bahmni Docker on an ARM64 device. You are correct that some Bahmni components are built for amd64 architectures, which may be causing compatibility issues.
As a quick fix, rather than rebuilding the images, you can specify the platform for the affected services in your docker-compose.yml file. You can achieve this by adding the following line under each service that faces platform incompatibility:
platform: linux/amd64
For example, for the reportsdb service, your configuration should look like this:
openmrsdb Pulled 3.1s
[+] Running 0/1
⠋ Container bahmni-standard-openmrsdb-1 Creating 0.0s
Error response from daemon: image with reference bahmni/openmrs-db:1.0.0-standard was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64
don’t you think i may need to actually build an image of arm64 and push it to the any hub ?
I have tried starting Bahmni on mysql:8.0 , and it’s not starting. is standard having any compatibility issues with (mysql 8.0), I noticed openmrs couldn’t create openmrs.person_attribute_type
Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::1::upul:
Reason: liquibase.exception.DatabaseException: Table 'openmrs.person_attribute_type' doesn't exist [Failed SQL: (1146) ALTER TABLE openmrs.person_attribute_type ADD edit_privilege VARCHAR(255) NULL]
@tendomart If you are starting with mysql:8.0, then please set the OPENMRS_DB_CREATE_TABLES environment variable to true. This is needed to so that the openmrs service initialises the database from fresh.