dockercommand-line-interfacemirth

Invoking Mirth Connect CLI in Docker


Using this as reference, Invoking Mirth Connect CLI with Powershell script, we are following these instructions on a docker container, translating it as best as we can but we are getting this error message now which appears related to Java.

"Error: Could not find or load main class com.install4j.runtime.launcher.UnixLauncher"

Tried a few things playing around with the Java environment variable but no dice yet. Also tried to place the zip4J library in the custom-lib folder of mirth.

Any help would be great.


Solution

  • For anyone trying to restore or modify a channel configuration, the best way I found is to use the rest API. You can try your settings using Postman and see the results immediately in Mirth. For our use case, configuring a container with mirth and its respective configuration, it worked like a charm using the REST API. A listing of all API options is available right from Mirth, on the left side there is a link to the documentation, with samples and fields that can be used to test with Postman. Hope this helps.