Due to some problems with demo (Process to update the demo server), I decided to spend my weekend trying to dockerise refapp in such a way we could replace the current deployment to use docker (and replace it completely daily or so).
The refapp standalone doesn’t particularly help, because it’s graphical, requires input from user, provides database as files in filesystem (not a sql), and expects database on the localhost (and I’d rather follow docker philosophy of one process per container).
This is what I got so far: https://github.com/cintiadr/docker-openmrs
Firstly, I discover that mysql 5.7 fails to generate database, probably it’s a known issue.
- Is there a way to convince openmrs to create tables and demo data without showing the wizard?
- Do I need to generate a new dump on every new version of reference application or is it safe to use an older dump, and allow openmrs to apply the delta on top of it?
- Would it be acceptable to generate a .sql inside the standalone? Or is there any recommended way to generate the empty database and demo data automatically?
- What exactly do I need to do to use https://wiki.openmrs.org/display/RES/Demo+Data data? I cannot use it on refapp apparently, and also if I try to use on platform it fails on missing classes. How that’s generated, and how to use it?