Support configurable paths for pre-loaded digest files #151
Labels
flag:schedule
Flag issue that should go on the roadmap or backlog.
_flag:stale
[BOT ONLY] Flag issue that hasn't been updated in a while and needs to be triaged again
At the moment, we support pre-loaded imaging and phenotypic digest files for QPN. However, currently the app hardcodes the path to the QPN data, meaning if the name, URL, structure, etc. of the parent data repo changes, we need to modify the code so the app can find the digest files again.
digest/digest/utility.py
Lines 28 to 46 in 3654b77
To make this more maintainable and extendable (e.g., a user running their own digest instance wants to supply their own pre-loaded digest files), we could factor out the above section into a JSON file that a user can modify. With this change, we would then only need to require the user to provide a single directory path in which all their digest files live. This user-specified directory would be mounted into a consistent path inside the container. Then, in the JSON file, the user need only to specify the relative path to each digest of interest.
For the mounting portion, one option could be to create a named volume ahead of time, and then either manually mount it every time the container starts - or to just add a docker-compose file for this one container and define the volume in there.
Originally posted by @surchs in #150 (comment)
Example:
The text was updated successfully, but these errors were encountered: