Skip to content

Commit

Permalink
📝 comments in docker, docker in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
WillForan committed Oct 9, 2023
1 parent 6397ea2 commit fbd5103
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM rocker/tidyverse
# longer running depends so they're cached
# options(repos=structure(c(CRAN="http://lib.stat.cmu.edu/R/CRAN")))
RUN R -e "\
install.packages(c('itsadug','XML','oro.nifti', 'qualtRics','RPostgreSQL', 'gridExtra', 'pscyh','BiocManager'));\
BiocManager::install('BiocParallel');\
remotes::install_github('Jfortin1/neuroCombatData');\
remotes::install_github('Jfortin1/neuroCombat_Rpackage');"
RUN bash -c "cpan install URI::Encode<<<yes"
RUN bash -c "cpan install URI::Encode<<<yes" # used for testing db uri; adds a minute to build
COPY . /lncdr
RUN R -e "remotes::install_local('lncdr', upgrade=F)"
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ localinstall:
Rscript -e "devtools::document(); remotes::install_local('./', force=T)"
test: localinstall
cd tests/ && Rscript "testthat.R"
docker:
docker build -t lncdr .

0 comments on commit fbd5103

Please sign in to comment.