You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently properties such as ds.serverName and ds.port must be defined in the properties file that is passed as system property basil.configurationFile. If these properties are passed on startup, the application does not seem to pick them up, see server initialization:
In some instances, such as containerized environments like DC/OS, providing configuration files dynamically is not always handy. In such cases, setting environment variables is a preferable way. For example, if I set env variables DB_HOST and DB_PORT, then I could execute BASIl like this:
Currently properties such as
ds.serverName
andds.port
must be defined in the properties file that is passed as system propertybasil.configurationFile
. If these properties are passed on startup, the application does not seem to pick them up, see server initialization:https://github.com/the-open-university/basil/blob/f6ab23a1cf322fd8aec7e38ee271048ecfbf1986/server/src/main/java/uk/ac/open/kmi/basil/server/BasilServerEnvironment.java#L15
In some instances, such as containerized environments like DC/OS, providing configuration files dynamically is not always handy. In such cases, setting environment variables is a preferable way. For example, if I set env variables
DB_HOST
andDB_PORT
, then I could execute BASIl like this:where the
ds.serverName
andds.port
values would override those inbasil.ini
, if at all present.It would be nice to have such support.
The text was updated successfully, but these errors were encountered: