2023-04-11 16:02:34 +02:00
|
|
|
FROM d4science/rstudio-base:2023-03-R4-2
|
|
|
|
|
|
|
|
LABEL org.d4science.image.licenses="EUPL-1.2" \
|
|
|
|
org.d4science.image.source="https://code-repo.d4science.org/gCubeSystem/rstudio-d4science" \
|
|
|
|
org.d4science.image.vendor="D4Science <https://www.d4science.org>" \
|
2023-04-11 16:22:20 +02:00
|
|
|
org.d4science.image.authors="Andrea Dell'Amico <andrea.dellamico@isti.cnr.it>"
|
2023-04-11 16:02:34 +02:00
|
|
|
|
2024-04-16 20:01:36 +02:00
|
|
|
# R required by vlab5 VRE https://support.d4science.org/issues/23536
|
2024-04-16 18:13:07 +02:00
|
|
|
|
2024-04-16 20:01:36 +02:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
# Upgrade, install some R dependencies and base python3
|
|
|
|
RUN apt-get update --yes && \
|
|
|
|
apt-get dist-upgrade --yes && \
|
|
|
|
apt-get install --yes --no-install-recommends \
|
2024-04-17 10:10:22 +02:00
|
|
|
libgdal-dev \
|
2024-04-16 20:01:36 +02:00
|
|
|
pandoc \
|
|
|
|
pandoc-citeproc \
|
|
|
|
texlive-xetex \
|
|
|
|
texlive-latex-base \
|
|
|
|
texlive-latex-recommended \
|
|
|
|
texlive-fonts-recommended \
|
|
|
|
texlive-fonts-extra \
|
|
|
|
texlive-formats-extra \
|
|
|
|
libssl-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libv8-dev \
|
|
|
|
libsecret-1-dev \
|
|
|
|
librdf0-dev \
|
|
|
|
libcurl4-openssl-dev \
|
|
|
|
libgit2-dev \
|
|
|
|
libxslt-dev \
|
|
|
|
librdf0 \
|
|
|
|
redland-utils \
|
|
|
|
rasqal-utils \
|
|
|
|
raptor2-utils \
|
|
|
|
libcairo2-dev \
|
|
|
|
libpoppler-cpp-dev \
|
|
|
|
libmagick++-dev \
|
|
|
|
cmake \
|
|
|
|
cargo \
|
|
|
|
libavfilter-dev \
|
|
|
|
libjq-dev \
|
|
|
|
libprotobuf-dev \
|
|
|
|
protobuf-compiler \
|
|
|
|
libproj-dev
|
|
|
|
|
|
|
|
COPY install2r-packages.txt /rocker_scripts
|
|
|
|
RUN for f in `cat //rocker_scripts/install2r-packages.txt` ; do install2.r --error --skipinstalled --ncpus -1 $f || exit 1 ; done
|
|
|
|
|
|
|
|
RUN installGithub.r -d TRUE -u FALSE -r https://packagemanager.rstudio.com/all/__linux__/jammy/latest r-geoflow/geoflow
|
|
|
|
RUN installGithub.r -d TRUE -u FALSE -r https://packagemanager.rstudio.com/all/__linux__/jammy/latest hrbrmstr/streamgraph
|
2024-04-16 18:13:07 +02:00
|
|
|
|
|
|
|
# Rstudio settings
|
2023-04-11 16:02:34 +02:00
|
|
|
COPY rsession.conf /etc/rstudio/rsession.conf
|
|
|
|
RUN chmod 0644 /etc/rstudio/rsession.conf
|
|
|
|
RUN curl -o "${R_HOME}/etc/Rprofile.site" "https://code-repo.d4science.org/gCubeSystem/rstudio-rprofile/raw/branch/master/jupyter-Rprofile.site"
|
|
|
|
|
2024-04-16 20:01:36 +02:00
|
|
|
RUN rm -fr /tmp/downloaded_packages/*
|
|
|
|
|
|
|
|
RUN rm -fr /tmp/downloaded_packages/* && \
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
|
|
|
rm -f /tmp/R*
|
|
|
|
|