Skip to content

Commit

Permalink
Move ischool hub to R 4.1 + latest RStudio
Browse files Browse the repository at this point in the history
To be merged after 17th December

Ref berkeley-dsep-infra/datahub#2945
  • Loading branch information
yuvipanda committed Dec 16, 2021
1 parent 5052cab commit 91b065e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rocker/geospatial:4.0.5
FROM rocker/geospatial:4.1.2

ENV NB_USER rstudio
ENV NB_UID 1000
Expand Down Expand Up @@ -41,13 +41,6 @@ RUN apt-get update > /dev/null && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# 1.3.959 is latest version that works with jupyter-rsession-proxy
# See https://github.com/jupyterhub/jupyter-rsession-proxy/issues/93#issuecomment-725874693
ENV RSTUDIO_URL https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.3.959-amd64.deb
RUN curl --silent --location --fail ${RSTUDIO_URL} > /tmp/rstudio.deb && \
dpkg -i /tmp/rstudio.deb && \
rm /tmp/rstudio.deb

COPY install-mambaforge.bash /tmp/install-mambaforge.bash
RUN /tmp/install-mambaforge.bash

Expand All @@ -59,6 +52,9 @@ RUN pip install --no-cache-dir -r /tmp/infra-requirements.txt
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

# Support latest RStudio
RUN pip install --no-cache 'jupyter-rsession-proxy>=2.0'

# Install IRKernel
RUN R --quiet -e "install.packages('IRkernel', quiet = TRUE)" && \
R --quiet -e "IRkernel::installspec(prefix='${CONDA_DIR}')"
Expand Down

0 comments on commit 91b065e

Please sign in to comment.