jahtoe
(alex muir)
1
Greetings,
I’ve been looking for the DockerFile for https://hub.docker.com/r/openmrs/openmrs-reference-application-distro however it’s not available and I haven’t found it online with Google searches. I wanted to make some changes to setup replication on the mysqldb.
I’m wondering if it is available on request or if there is a reason it is not made public?
Regards
Jahtoe
sharif
(Sharif Magembe)
2
1 Like
cintiadr
(Cintia Del Rio)
3
Hi @jahtoe,
We have an SDK (please find openmrs sdk in wiki) that allows us to generate the dockerfile, some boilerplate for docker compose and some initial sql.
That’s how the default images are created.
I will come back here later from my laptop with a proper answer and links
2 Likes
jahtoe
(alex muir)
4
Yes, thanks for that url.
I see the section ‘Creating docker configuration for distribution’
“SDK offers convenient way to create docker configuration for distributions with command:”
mvn openmrs-sdk:build-distro
cintiadr
(Cintia Del Rio)
5
So, on the readme, there’s the explanation on how the image was created:
https://hub.docker.com/r/openmrs/openmrs-reference-application-distro
The docker image used was generated by OpenMRS SDK, and deployed to Docker hub from CI:
$ mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.7.0:build-distro -B -Ddir=demo-server -Ddistro=referenceapplication:<version> -Dbundled=true
$ cd demo-server/web/
$ docker build -t openmrs/openmrs-reference-application-distro:<version> .
$ docker push openmrs/openmrs-reference-application-distro:<version>
If you want to see how we deploy demo, you have here: https://github.com/openmrs/openmrs-contrib-ansible-docker-compose/tree/master/files/demo
Now, during build we just run that command, build the docker image and push.
1 Like