rstudio-d4science/Dockerfile

36 lines
1.6 KiB
Docker
Raw Normal View History

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
# R and python3 packages required by wb3 ecosystem https://support.d4science.org/issues/26459
COPY wb3-install2r-packages.txt /rocker_scripts
RUN for f in `cat /rocker_scripts/wb3-install2r-packages.txt` ; do install2.r --error --skipinstalled --ncpus -1 $f || exit 1 ; done
RUN pip3 install \
numpy \
mbtr \
pandas
2024-04-17 19:37:39 +02:00
ENV DEBIAN_FRONTEND noninteractive
# Upgrade, install some R dependencies and base python3
# Add libcurl4-gnutls-dev and remove libcurl4-openssl-dev because
#
# libraptor2-dev : Depends: libcurl4-gnutls-dev but it is not installable
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends \
2024-04-17 19:42:12 +02:00
libglpk40
2024-04-17 19:37:39 +02:00
RUN mkdir -p /opt/workspace-lib
RUN mkdir /var/log/workspace-lib
ADD https://maven.d4science.org/nexus/content/repositories/gcube-snapshots/org/gcube/data-access/sh-fuse-integration/2.0.0-SNAPSHOT/sh-fuse-integration-2.0.0-20211005.090627-1-jar-with-dependencies.jar /opt/workspace-lib/fuse-workspace.jar
RUN chmod 0644 /opt/workspace-lib/fuse-workspace.jar
2024-04-17 19:37:39 +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"