Skip to content

A plugin for Mirth Connect to set application properties stored in the DB from environment variables

License

Notifications You must be signed in to change notification settings

jonbartels/bootermcgooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booter McGooter

A plugin for Mirth Connect to set application properties stored in the DB from environment variables

Usage

Install the plugin. No signing cert is necessary since this is a server-side plugin with no client-side UI.

Set the following environment variables:

  • MC_SERVER_NAME
  • MC_ENV_NAME

When MC starts the plugin will register an event listener for the "server startup" event. When that event fires, the plugin knows Mirth is totally done starting and loading configs from the DB. The plugins event handler will then update ServerSettings with the environment name and server name

Inspiration

As usual, I was hacking on something at work and asked the brain trust in Slack for ideas before I wasted a whole day running in circles.

The goal I had was to set environment name and server name at boot time from environment variables. These can be set in the MC UI. They are stored as core properties in the configurations table. It is possible to pre-load a DB or execute psql statements from the Docker startup script. That requires some fiddly SQL but @kpalang sketched out how to do it.

@tonygermano hit on the idea of leveraging the new server startup event feature from 4.4.0.

Kirby Knight, Sean Rowe, and Jacob Schleith also contributed to the user story.

About

A plugin for Mirth Connect to set application properties stored in the DB from environment variables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages