Skip to content
Snippets Groups Projects
Commit 969c5c4e authored by Carl Boettiger's avatar Carl Boettiger
Browse files

pin default repo to MRAN

parent 3fffd95f
No related branches found
No related tags found
No related merge requests found
......@@ -2,18 +2,18 @@ FROM rocker/rstudio:3.3.2
ARG BUILD_DATE
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
build-essential \
libxml2-dev \
libsqlite-dev \
libmariadbd-dev \
libmariadb-client-lgpl-dev \
libpq-dev \
## R dependencies, snapshot to build date
## Set default repo to install all packages from date-locked MRAN snapshot of CRAN
&& [ -z "$BUILD_DATE" ] && BUILD_DATE=$(date -I) || true \
&& MRAN=https://mran.microsoft.com/snapshot/$BUILD_DATE \
&& Rscript -e "install.packages(c('RSQLite', 'RMySQL', 'RPostgreSQL'), repo = '$MRAN')" \
&& echo "options(repos = c(MRAN = '$MRAN'))" > /usr/local/lib/R/etc/Rprofile.site \
&& Rscript -e "install.packages(c('RSQLite', 'RMySQL', 'RPostgreSQL'))" \
## Temporary measure while git2r config is broken
&& Rscript -e "install.packages('devtools', repo = '$MRAN'); devtools::install_github('ropensci/git2r')" \
## Install tidyverse & devtools full suite
&& Rscript -e "install.packages(c('tidyverse', 'devtools'), dep=TRUE, repo = '$MRAN')"
&& Rscript -e "install.packages('devtools'); devtools::install_github('ropensci/git2r')" \
## Install tidyverse & devtools suites (including suggests)
&& Rscript -e "install.packages(c('tidyverse', 'devtools', 'profvis'), dep=TRUE)"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment