Sage-Bionetworks / cleanAD

Tools for cleaning and organizing study data for the AD Knowledge Portal.
Other
0 stars 1 forks source link

locate config.yml file for script execution in container #23

Closed avanlinden closed 2 years ago

avanlinden commented 2 years ago

A consistent error with running the command docker run --rm --entrypoint "./cleanAD/update_table.sh" to perform the AD specimen table update was that the config.yml file could not be located within the directory (although this was not a problem when running the generate-table.R script locally in an RStudio instance). This PR uses system.file() to locate the config file, which worked in testing.

I also added a line to the dockerfile that checks for changes to the github repository, and invalidates the cache if it finds them. This allows to use cacheing to build the previous more time consuming layers of the image, without skipping over changes to the actual code in the repo.