Skip to content

Commit

Permalink
Use devr as base image
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefhajnala committed Feb 16, 2021
1 parent 2a009c2 commit 9361b8c
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,32 +1,13 @@
FROM rocker/rstudio
FROM jozefhajnala/devr

ARG RHUB_EMAIL
ARG RHUB_TOKEN

RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
zlib1g-dev \
qpdf

# Basics do build and check
RUN Rscript -e "install.packages(c('jsonlite', 'nhlapi', 'knitr'))"

# Full development suite with RStudio
RUN Rscript -e "install.packages(c('roxygen2', 'devtools'))"

# Data handling
RUN Rscript -e "install.packages(c('poorman', 'data.table', 'dplyr'))"

# Charting
RUN Rscript -e "install.packages('ggplot2')"
RUN Rscript -e "install.packages('igraph', repos = 'https://cloud.r-project.org', Ncpus = parallel::detectCores())"
RUN Rscript -e "install.packages('highcharter')"
RUN install2.r --repos http://cran.r-project.org \
igraph \
highcharter

# R Hub for GH Actions
RUN Rscript -e "install.packages('rhub')"
RUN mkdir -p /home/rstudio/.local/share/rhub/ \
&& mkdir -p /root/.local/share/rhub/ \
&& echo '[email protected],37aa6a58c015433a9ffea2235052abbf' > /home/rstudio/.local/share/rhub/validated_emails.csv \
Expand All @@ -36,4 +17,5 @@ RUN mkdir -p /home/rstudio/.local/share/rhub/ \
RUN git clone \
https://github.com/jozefhajnala/nhlapi.git \
/home/rstudio/nhlapi \
&& chown rstudio:rstudio /home/rstudio/nhlapi -R
&& chown rstudio:rstudio /home/rstudio/nhlapi -R \
&& R CMD INSTALL /home/rstudio/nhlapi

0 comments on commit 9361b8c

Please sign in to comment.