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

specify timezone to so build occurs after MRAN makes snapshot

parent 53b2cba0
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ r-ver: .PHONY
rstudio: .PHONY
docker build --build-arg RSTUDIO_VERSION=1.0.44 -t rocker/rstudio:${R_VERSION} rstudio/${R_VERSION}
tidyverse: .PHONY
docker build --build-arg BUILD_DATE=$(date -I) -t rocker/tidyverse:${R_VERSION} tidyverse/${R_VERSION}
docker build --build-arg BUILD_DATE=$(date -I --date='TZ="America/Los_Angeles"') -t rocker/tidyverse:${R_VERSION} tidyverse/${R_VERSION}
verse: .PHONY
docker build -t rocker/verse:${R_VERSION} verse/${R_VERSION}
......
......@@ -8,7 +8,7 @@ RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libmariadb-client-lgpl-dev \
libpq-dev \
## Set default repo to install all packages from date-locked MRAN snapshot of CRAN
&& [ -z "$BUILD_DATE" ] && BUILD_DATE=$(date -I) || true \
&& [ -z "$BUILD_DATE" ] && BUILD_DATE=$(date -I --date='TZ="America/Los_Angeles"') || true \
&& MRAN=https://mran.microsoft.com/snapshot/$BUILD_DATE \
&& echo "options(repos = c(CRAN = 'https://cran.rstudio.com', MRAN = '$MRAN'))" > /usr/local/lib/R/etc/Rprofile.site \
&& Rscript -e "install.packages(c('RSQLite', 'RMySQL', 'RPostgreSQL'), repo = getOption('repos')[['MRAN']])" \
......
......@@ -8,7 +8,7 @@ RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libmariadb-client-lgpl-dev \
libpq-dev \
## Set default repo to install all packages from date-locked MRAN snapshot of CRAN
&& [ -z "$BUILD_DATE" ] && BUILD_DATE=$(date -I) || true \
&& [ -z "$BUILD_DATE" ] && BUILD_DATE=$(date -I --date='TZ="America/Los_Angeles"') || true \
&& MRAN=https://mran.microsoft.com/snapshot/$BUILD_DATE \
&& echo "options(repos = c(CRAN = 'https://cran.rstudio.com', MRAN = '$MRAN'))" > /usr/local/lib/R/etc/Rprofile.site \
&& Rscript -e "install.packages(c('RSQLite', 'RMySQL', 'RPostgreSQL'), repo = getOption('repos')[['MRAN']])" \
......
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