Support for MariaDB: Looking for volunteers

Ok, so here’s the latest status.

Bamboo build is now:

  • creating a mariadb docker container
  • creating a docker container for the openmrs

Almost working. Firstly and more important, openmrs home page is redirecting me to http://localhost:8080/openmrs/initialsetup

The command we are executing is:

mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:2.0:setup -B -e -DserverId=50 -Dversion=2.2 -DdbDriver=mysql -DdbUri=jdbc:mysql://${MARIADB_PORT_3306_TCP_ADDR}:3306/openmrs-50 -DdbUser=openmrs -DdbPassword=openmrs && mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:2.0:run -B -e -DserverId=50

I’m getting the following logs when starting openmrs:

2015-08-23 09:05:40.860:INFO:oejs.Server:main: jetty-9.0.4.v20130625
2015-08-23
 09:05:46.490:INFO:oejpw.PlusConfiguration:main: No Transaction manager 
found - if your webapp requires one, please configure one.
2015-08-23 09:06:03.136:INFO:/openmrs:main: No Spring WebApplicationInitializer types detected on classpath
2015-08-23 09:06:07.204:INFO:/openmrs:main: Set web app root system property: 'webapp.root' = [/root/openmrs/47/tmp/webapp]
2015-08-23 09:06:07.207:INFO:/openmrs:main: Initializing log4j from [classpath:log4j.xml]
WARN
 - OpenmrsUtil.getRuntimePropertiesFilePathName(2669) |2015-08-23 
09:06:07,320| Unable to find a runtime properties file at 
/openmrs-runtime.properties
WARN - 
OpenmrsUtil.getRuntimePropertiesFilePathName(2697) |2015-08-23 
09:06:07,330| Unable to find properties file: 
/root/openmrs/47/openmrs-runtime.properties
WARN - 
OpenmrsUtil.getRuntimeProperties(2630) |2015-08-23 09:06:07,330| Unable 
to find a runtime properties file. Initial setup is needed. View the 
webapp to run the setup wizard.
WARN - 
OpenmrsUtil.getRuntimePropertiesFilePathName(2669) |2015-08-23 
09:06:07,629| Unable to find a runtime properties file at 
/openmrs-runtime.properties
WARN - 
OpenmrsUtil.getRuntimePropertiesFilePathName(2697) |2015-08-23 
09:06:07,630| Unable to find properties file: 
/root/openmrs/47/openmrs-runtime.properties
WARN - 
OpenmrsUtil.getRuntimeProperties(2630) |2015-08-23 09:06:07,630| Unable 
to find a runtime properties file. Initial setup is needed. View the 
webapp to run the setup wizard.
2015-08-23 
09:06:07.650:INFO:oejsh.ContextHandler:main: Started 
o.e.j.m.p.JettyWebAppContext@54bbc891{/openmrs,file:/root/openmrs/47/tmp/webapp/,AVAILABLE}{/root/openmrs/47/openmrs-1.11.2.war}
2015-08-23 09:06:07.678:INFO:oejs.ServerConnector:main: Started ServerConnector@7fedeca9{HTTP/1.1}{0.0.0.0:8080}

I can see that some of the files were created:

root@601c138e95e1:~/openmrs/47# ls h2-1.2.135.jar installation.properties modules openmrs-1.11.2.war tmp

Some other heaps of improvements that need to be done:

  • move those files to a git repository instead of being on the build
  • making sure docker containers are removed after finishing
  • make the start up script a little bit more robust! Upgrading Bamboo would be useful
  • mariadb doesn’t need to expose a port to the host
  • retrieve the application logs even after the container finished, and on the build itself ( I have no idea where they are, or are we talking here about only the maven jetty one?)
  • also, set up the real tests. I exported the port 8080 to the host too, but as we have 2 build agents on the same server, I suppose we can set anything else.

If someone could please help, it would be much appreciated!

1 Like