Commit 44b5780c authored by Facundo Muñoz's avatar Facundo Muñoz ®️
Browse files

Dockerfile: add R-packages as dependencies and document Docker usage.

parent f868caad
Pipeline #14903 passed with stage
in 5 minutes and 51 seconds
......@@ -2,6 +2,19 @@
# Source for the docker image registry.forgemia.inra.fr/umr-astre/covid19-mortality
# (c) 2020 Facundo Muñoz
# Usage:
# - Reproduce CI locally:
# sudo docker pull registry.forgemia.inra.fr/umr-astre/covid19-mortality
# sudo docker run -e PASSWORD=fmstudio -p 8787:8787 --rm -it -v $(pwd):/home/rstudio/covid19-mortality registry.forgemia.inra.fr/umr-astre/covid19-mortality # Run from the project root dir.
# [browse to localhost:8787] username: rstudio, password: fmstudio
# drake::r_make()
#
# - Modify and update Docker image
# sudo docker build -t registry.forgemia.inra.fr/umr-astre/covid19-mortality .
# [test]
# sudo docker push registry.forgemia.inra.fr/umr-astre/covid19-mortality
FROM rocker/geospatial
LABEL maintainer="Facundo Muñoz facundo.munoz@cirad.fr"
......@@ -81,7 +94,34 @@ unicode-math \
xunicode
# Install R-package dependencies for compiling reports
RUN ["install2.r", "ade4", "Cairo", "countrycode", "drake", "furrr", "future.callr", "here", "hrbrthemes", "janitor", "knitr", "latticeExtra", "pacman", "readxl", "rjson", "rmarkdown", "rmdformats"]
RUN ["install2.r", \
"ade4", \
"Cairo", \
"countrycode", \
"cowplot", \
"distill", \
"downloader", \
"drake", \
"furrr", \
"future.callr", \
"gratia", \
"here", \
"hrbrthemes", \
"janitor", \
"kableExtra", \
"knitr", \
"latticeExtra", \
"mvnfast", \
"NCmisc", \
"pacman", \
"patchwork", \
"proftools", \
"reader", \
"readxl", \
"rjson", \
"rmarkdown", \
"rmdformats" \
]
## Only needed with the option fig_crop
## which gives issues with device Cairo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment