docker-jenkins-integration-.../Dockerfile

43 lines
1.9 KiB
Docker
Raw Normal View History

2022-03-30 18:26:14 +02:00
FROM d4science/r-full:latest
2022-03-25 10:07:59 +01:00
2022-03-30 19:20:20 +02:00
LABEL org.d4science.image.licenses="EUPL-1.2" \
org.d4science.image.source="https://github.com/rocker-org/rocker-versioned2" \
org.d4science.image.vendor="D4Science <https://www.d4science.org>" \
org.d4science.image.authors="Andrea Dell'Amico <andrea.dellamico@isti.cnr.it>, Roberto Cirillo <roberto.cirillo@isti.cnr.it>" \
org.d4science.image.r_version="2022.02.1+461"
2022-03-25 10:07:59 +01:00
ENV S6_VERSION=v2.1.0.2
ENV RSTUDIO_VERSION=2022.02.1+461
ENV DEFAULT_USER=rstudio
ENV PANDOC_VERSION=default
ENV PATH=/usr/lib/rstudio-server/bin:$PATH
RUN /rocker_scripts/install_rstudio.sh
RUN /rocker_scripts/install_pandoc.sh
2022-04-02 02:45:05 +02:00
RUN apt-get update && apt-get install -y fuse zip jq openjdk-8-jdk-headless
2022-03-29 12:43:39 +02:00
# This part comes from https://github.com/openanalytics/shinyproxy-rstudio-ide-demo/blob/master/Dockerfile
2022-03-30 11:26:20 +02:00
RUN echo "www-frame-origin=same" >> /etc/rstudio/disable_auth_rserver.conf
2022-03-29 12:43:39 +02:00
RUN echo "www-verify-user-agent=0" >> /etc/rstudio/disable_auth_rserver.conf
2022-03-30 18:26:14 +02:00
ADD 01_set_env.sh /etc/cont-init.d/01_set_env
ADD 02_userconf.sh /etc/cont-init.d/02_userconf
ADD 03_setup_root_path.sh /etc/cont-init.d/03_setup_root_path
2022-03-29 12:43:39 +02:00
# By default RStudio does not give access to all enviornment variables defined in the container (e.g. using ShinyProxy).
# Uncomment the next line, to change this behavior.
2022-03-30 18:26:14 +02:00
#ADD 04_copy_env.sh /etc/cont-init.d/04_copy_env
ADD 05_setup_rsession_parameters.sh /etc/cont-init.d/05_setup_rsession_parameters
2022-03-29 12:43:39 +02:00
2022-04-01 23:45:43 +02:00
# Prepare the workspace environment
RUN mkdir -p /opt/workspace-lib
RUN mkdir /var/log/workspace-lib
2022-04-02 02:45:05 +02:00
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
2022-04-01 23:45:43 +02:00
ADD 06_workspace_mount.sh /etc/cont-init.d/06_workspace_mount
2022-04-02 02:45:05 +02:00
ADD 06-fuse-logback.xml /opt/workspace-lib/logback.xml
2022-04-01 23:45:43 +02:00
2022-03-25 10:07:59 +01:00
EXPOSE 8787
2022-03-29 12:43:39 +02:00
CMD ["/init"]