Update OpenMRS Core DockerFile

Hey @burke !

Attempted installing again OpenMRS(after a year’s hiatus) with Digital Ocean and realised that the Platform file is still the older version.

Would like to ask if it’s possible to update the Docker File to pull the latest stable version of the OpenMRS Version?

Referring to this Github Repo: https://github.com/bmamlin/openmrs-core-docker

Anyway of keeping this maintained to the latest version? Would be super useful for me.

Thanks in advance for your help!

@stefan.buttigieg you’re probably better off looking at this (unless you specifically want just the platform and not the reference application):

1 Like

This sounds great! Much more organised this way.

I believe in my case, I’m better off with the Platform. Still have to distiniguish properly between all the versions.

Is it possible to update the documentation to reflect this change?

Documentation in question: https://wiki.openmrs.org/display/docs/Installing+OpenMRS+on+Docker

Do you mind volunteering to update that documentation? :slight_smile:

Hi Daniel!

Would love to but don’t know the exact instructions. I’m waiting for some further insight, as I’m still figuring out how to use Docker Compose and install the actual platform. Still learning here :slight_smile:

The platform will also have a docker image deployed to dockerhub, but I cannot promise it any time soon :slight_smile: That will take a couple of weeks.

The README file has a short description on how to generate docker images/docker compose from the SDK: https://hub.docker.com/r/openmrs/openmrs-reference-application-distro/

And it should work too if you run inside platform: https://wiki.openmrs.org/display/docs/OpenMRS+SDK

mvn openmrs-sdk:build-distro -Ddistro=/path/to/openmrs-distro.properties
docker-compose up

The build-distro will generate docker files AND docker compose files for you to use :slight_smile:

If one generated new docker files in this manner, would there still need to be some kind of migration to update the database to a new version? It seems like this would update the application but the database might be using an old schema.

Hi @nickp

There’s no relationship between the docker image and the database version/schema.

The database schema is updated/controlled when you start the OpenMRS instance, by ‘liquibase’. So the version of OpenMRS inside the docker container is what defines the schema version.

I hope that explains it well.