Skip to content

Commit

Permalink
first attempt at Jupyterlab 3.0 image for Sept
Browse files Browse the repository at this point in the history
Still need to:
- pin package versions
- upgrade to built-in pipe shortcut
- confirm disabling of merged cells works on a JupyterHub
  • Loading branch information
ttimbers authored Jul 21, 2021
1 parent 6be3b29 commit c03b7cc
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions r-dsci-100/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Copyright (c) UBC-DSCI Development Team.
# Distributed under the terms of the Modified BSD License.
ARG BASE_CONTAINER=jupyter/r-notebook@sha256:38d5c53d93c02793d7dcade4db13c3f79a685b8cda700e36cded121ecc882bd2
ARG BASE_CONTAINER=jupyter/r-notebook
FROM $BASE_CONTAINER

LABEL maintainer="Tiffany Timbers <[email protected]>"

# Install R packages on conda-forge
RUN conda install --quiet --yes -c conda-forge \
r-cowplot=1.* \
r-ggally=1.5.* \
r-gridextra=2.3.* \
r-infer=0.5.* \
r-cowplot \
r-ggally \
r-gridextra \
r-infer \
r-kknn \
r-testthat=2.3.* \
r-rpostgres=1.2.*
r-rpostgres

# Install the palmerpenguins dataset
RUN Rscript -e "devtools::install_github('allisonhorst/[email protected]')"
Expand All @@ -25,13 +25,12 @@ RUN Rscript -e "install.packages('ISLR', repos='http://cran.us.r-project.org')"
USER root

RUN pip install git+https://github.com/data-8/nbgitpuller \
&& jupyter serverextension enable --sys-prefix nbgitpuller \
&& jupyter labextension install @jupyterlab/git \
&& pip install jupyterlab-git \
&& jupyter serverextension enable --py jupyterlab_git \
&& pip install jupytext --upgrade \
&& jupyter labextension install @techrah/text-shortcuts \
&& jupyter lab build
&& jupyter serverextension enable --sys-prefix nbgitpuller \
&& pip install jupyterlab-git \
&& pip install jupytext --upgrade \
&& jupyter labextension install @techrah/text-shortcuts \
&& jupyter lab build

RUN useradd -m -s /bin/bash -N -u 9999 jupyter

USER jupyter
Expand All @@ -40,6 +39,6 @@ COPY rm-merge-shortcut.py /home/jupyter/.jupyter/lab/user-settings/\@jupyterlab/

# Configure jupyter user
ENV NB_USER=jupyter \
NB_UID=9999
NB_UID=9999
ENV HOME=/home/$NB_USER
WORKDIR $HOME

0 comments on commit c03b7cc

Please sign in to comment.