Skip to content

Commit

Permalink
Added new R image. See #27742
Browse files Browse the repository at this point in the history
  • Loading branch information
EGI-ILM committed Jul 16, 2024
1 parent 0a62679 commit d0c72f4
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/d4science-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
"single-user-criticalzone/Dockerfile"
"single-user-ecologicalrestorationlab/Dockerfile"
"single-user-pluto-d4science/Dockerfile"
"single-user-sobigdata-itineris/Dockerfile"
base-image:
Expand Down
88 changes: 88 additions & 0 deletions single-user-sobigdata-itineris/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# ITINERIS EV (see #27742)

ARG BASE_IMAGE=eginotebooks/base:latest
FROM $BASE_IMAGE

USER root

RUN apt update \
&& apt install --no-install-recommends -y \
nco \
cdo \
cmake \
g++ \
libcurl4-openssl-dev \
libssl-dev \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*

USER $NB_UID

RUN Rscript -e "install.packages(\
c('dplyr',\
'ggplot2', \
'purrr', \
'readr', \
'stringr', \
'tibble', \
'tidyr', \
'countrycode', \
'dtplyr', \
'geodata', \
'geojsonsf', \
'ggforce', \
'httr2', \
'jqr', \
'jsonlite', \
'leaflet', \
'lifecycle', \
'lubridate', \
'magrittr', \
'qrcode', \
'raster', \
'RColorBrewer', \
'Rdpack', \
'rosm', \
'sf', \
'spocc', \
'stringi', \
'taxize', \
'terra', \
'tmap', \
'units', \
'webshot', \
'worrms', \
'XML', \
'xml2', \
'zen4R', \
'lattice', \
'latticeExtra', \
'ncdf4', \
'rasterVis', \
'writexl', \
'readxl', \
'xts', \
'rlang', \
'Shiny', \
'plyr', \
'zoo', \
'shinydashboard', \
'data.table', \
'lubridate', \
'devtools', \
'waffle'), \
repos = c('http://cran.r-project.org'))"

RUN Rscript -e "utils::install.packages('ReLTER', \
repos = 'https://ropensci.r-universe.dev')"


#RUN Rscript -e "devtools::install_github('ropensci/ReLTER', \
# 'rspatial/geodata', \
# 'ropensci/MODIStsp')"

# -------------------------------
# JupyterLab extensions
# -------------------------------
RUN pip install --no-cache-dir jupyterlab-topbar
RUN jupyter labextension disable @jupyterlab/filebrowser-extension:share-file

0 comments on commit d0c72f4

Please sign in to comment.