From 03485a0850b4ccde91cac19b65c6a7992a86b639 Mon Sep 17 00:00:00 2001 From: Candace Savonen Date: Thu, 10 Feb 2022 07:37:02 -0500 Subject: [PATCH 1/2] Docker CRAN issue --- docker/Dockerfile | 5 +++-- resources/TEMPLATE_Dockerfile | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 49d6c379e..1c0c6e086 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -43,7 +43,7 @@ RUN apt-get -y --no-install-recommends install \ python3-pip python3-dev # Commonly used R packages -RUN Rscript -e "install.packages( \ +RUN Rscript -e "options(warn = 2);install.packages( \ c('bookdown', \ 'here', \ 'leanpubr', \ @@ -56,7 +56,8 @@ RUN Rscript -e "install.packages( \ 'servr', \ 'spelling', \ 'styler', \ - 'reticulate'))" + 'reticulate'), \ + repos = 'https://cloud.r-project.org/')" # cow needs this dependency: RUN Rscript -e "devtools::install_version('gitcreds', version = '0.1.1', repos = 'http://cran.us.r-project.org')" diff --git a/resources/TEMPLATE_Dockerfile b/resources/TEMPLATE_Dockerfile index 46fc78d0a..0184b153c 100644 --- a/resources/TEMPLATE_Dockerfile +++ b/resources/TEMPLATE_Dockerfile @@ -1,14 +1,17 @@ FROM jhudsl/course_template LABEL maintainer="your_email.com" +RUN R -e "options(warn = 2); install.packages(c('OCSdata'), repos='https://cloud.r-project.org/')" + #################### EXAMPLES OF INSTALLING PACKAGES ########################### # Install a Linux/Ubuntu package # RUN apt-get update && apt-get install -y --no-install-recommends \ # package_name # Install a package from CRAN -# RUN Rscript -e "install.packages( \ -# c('package_name'))" +# RUN Rscript -e "options(warn = 2);install.packages( \ +# c('package_name'), \ +# repos = 'https://cloud.r-project.org/')" # Install a package from Bioconductor # RUN Rscript -e "options(warn = 2); BiocManager::install( \ From eb60f55198813163defcdbe4053962844b6dc7f4 Mon Sep 17 00:00:00 2001 From: Candace Savonen Date: Thu, 10 Feb 2022 07:46:26 -0500 Subject: [PATCH 2/2] Delete ocsdata test install --- resources/TEMPLATE_Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/resources/TEMPLATE_Dockerfile b/resources/TEMPLATE_Dockerfile index 0184b153c..01ce18367 100644 --- a/resources/TEMPLATE_Dockerfile +++ b/resources/TEMPLATE_Dockerfile @@ -1,8 +1,6 @@ FROM jhudsl/course_template LABEL maintainer="your_email.com" -RUN R -e "options(warn = 2); install.packages(c('OCSdata'), repos='https://cloud.r-project.org/')" - #################### EXAMPLES OF INSTALLING PACKAGES ########################### # Install a Linux/Ubuntu package # RUN apt-get update && apt-get install -y --no-install-recommends \