Locating packages after openmrs-distro-platform build

When I run mvn clean install on the distro repo, The build executes successfully with a log like

[INFO] Copying fhir-omod-1.11.0.jar to /Users/bruce/openmrs-distro-platform/target/distro/web/WEB-INF/bundledModules/fhir-1.11.0.omod
[INFO] Copying webservices.rest-omod-2.21.0.jar to /Users/bruce/openmrs-distro-platform/target/distro/web/WEB-INF/bundledModules/webservices.rest-2.21.0.omod
[INFO] Copying owa-omod-1.8.1.jar to /Users/bruce/openmrs-distro-platform/target/distro/web/WEB-INF/bundledModules/owa-1.8.1.omod
...

I am instructed to run docker-compose up from target/distro directory. I however cannot locate the folders that are specified for the modules and OWAs making it hard for me to know if the modules and OWAs were bundled with it.

The released file is a war package and running the docker command starts it with the tomcat server but I cannot recognise the presence of the Add On manager OWA or the path to it without finding its directory path

cc: @dkayiwa @malmike @patrick @ebuka @justmesam

1 Like

Still having an issue with this for now

cc: @raff @wyclif

@raff Can you please provide some help with this issue?

I checked the docker image and it does not seem to have the contents I expected to find.

LICENSE
NOTICE
RELEASE-NOTES
RUNNING.txt
bin
conf
include
lib
logs
native-jni-lib
openmrs-server.properties
startup.sh
temp
wait-for-it.sh
webapps
work

I expect to find a directory structure like the standalone. Can someone provide guidance on how the Standalone is generated?

cc: @raff

@elbertbiggs360 this should not have anything to do with the openmrs standalone https://wiki.openmrs.org/display/docs/OpenMRS+Standalone

@elbertbiggs360, I’m sorry for not responding earlier (I though I had). Modules and OWAs are bundled inside the war. So go to target/distro/web/openmrs.war/WEB-INF/bundledModules or bundledOwas.

However, the Add On Manager OWA, which you mention, has not been bundled yet with the distribution. Are you trying to bundle it?

@raff yes I am trying to bundle it with the distribution :smiley:

https://github.com/openmrs/openmrs-distro-referenceapplication/blob/master/package/src/main/resources/openmrs-distro.properties#L45 is an example of how to add an owa to a distribution. This one in particular adds the sysadmin owa to Reference Applicaiton.

@raff Thanks!

I added a PR for that here:

The docker container has the contents in this format

bundledModules
bundledOwas
classes
dwr-modules.xml
lib
openmrs_static_content-servlet.xml
taglibs
tags
template
view
web.xml

Do share in case you have more tips for the bundling process