Skip to content
Snippets Groups Projects
Commit 9685ec00 authored by Rok Roškar's avatar Rok Roškar Committed by Chandrasekhar Ramakrishnan
Browse files

build: support R along with python in interactive environments

parent 71e50792
No related branches found
No related tags found
No related merge requests found
Pipeline #17371 passed with stage
in 22 seconds
FROM renku/renkulab:renku0.9.1-py3.7-0.5.2
FROM renku/renkulab:renku0.9.1-r3.6.1-0.5.2
# For some reason need to be root to install from symlink
COPY src /code/src
......@@ -8,18 +8,35 @@ RUN ln -s /code/src
# e.g. the following installs apt-utils and vim; each pkg on its own line, all lines
# except for the last end with backslash '\' to continue the RUN line
#
# USER root
# RUN apt-get update && \
# apt-get install -y --no-install-recommends \
# apt-utils \
# vim
# USER ${NB_USER}
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends \
apt-utils \
dirmngr \
gpg-agent \
less \
libcurl4-openssl-dev \
libxml2-dev \
libz-dev \
software-properties-common
RUN chmod -R 777 /usr/local/lib/R/site-library
USER ${NB_USER}
# install the python dependencies
USER root
COPY requirements.txt environment.yml /tmp/
RUN conda env update -q -f /tmp/environment.yml && \
/opt/conda/bin/pip install -r /tmp/requirements.txt && \
/opt/conda/bin/pip install --ignore-installed -r /tmp/requirements.txt && \
conda clean -y --all && \
conda env export -n "root"
conda env export -n "root" && \
jupyter lab build
USER ${NB_USER}
# install the R dependencies
COPY install.R /tmp/
RUN R -f /tmp/install.R
RUN pipx upgrade renku
Version: 1.0
RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default
EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8
RnwWeave: Sweave
LaTeX: pdfLaTeX
......@@ -33,6 +33,7 @@ json5==0.9.0
jsonschema==3.2.0
jupyter-client==6.0.0
jupyter-core==4.6.3
jupyter-rsession-proxy==1.1
jupyter-telemetry==0.0.5
jupyterhub==0.9.6
jupyterlab==1.2.5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment