Configuration from outside
Giving the Datahub and Icat Plus containers a folder with all needed facility specific configuration files, texts and logos, as a Docker volume and load them at start up time, would make things very easy.
As a first step in that direction we could relocate configuration files, and logos to one configuration directory per project.
A second step may be moving all texts to text files and reference them in the code. The I18N standard libraries are providing this functionality. Creating a facility specific text file to the one configuration directory would make it easier to use E-Data-Portal at other facilities.
Configuration files locations in HZB’s production version:
Icat Plus
- config/server.config.js
- config/investigation.config.js
- app/tracking.config.js
- app/restore.config.js
Datahub
- .env
- src/config/*
- images/ebs.gif
- public/favicon.ico
Edited by Marcus Lewerenz