forked from ucsf-wynton/wynton-website-hpc
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Issue
Currently, the page generation of module repositories is done "live", i.e. the script calls spider ... when it renders the page;
Lines 52 to 59 in b8875b0
| lmod_dir <- file.path(Sys.getenv("LMOD_DIR")) | |
| stopifnot(nzchar(lmod_dir)) | |
| spider <- file.path(lmod_dir, "spider") | |
| message(" - spider binary: ", sQuote(spider)) | |
| stopifnot(utils::file_test("-x", spider)) | |
| args <- c("--no_recursion", "-o jsonSoftwarePage", module_path) | |
| message(" - spider arguments: ", paste(args, collapse = " ")) | |
| json <- system2(spider, args = args, stdout = TRUE) |
This prevents us from rendering the page outside of the cluster, e.g. on a local notebook or on GitHub Pages.
Suggestions
To fix this, we can:
- Dump
spider ...output to file, e.g. via a cronjob and commit to the repo - Have the page rendering script read spider data from this file
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels