Skip to content

Commit

Permalink
update for R4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ttimbers committed Jul 13, 2020
1 parent 94832f4 commit dc0f67a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
21 changes: 13 additions & 8 deletions r-dsci-100/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,25 @@ LABEL maintainer="Tiffany Timbers <[email protected]>"

# R packages on conda-forge
RUN conda install --quiet --yes -c conda-forge \
r-infer=0.4* \
r-rtsne=0* \
r-ggally=1.4* \
r-gridextra=2.3* \
r-testthat=2.1* \
r-rpostgres=1.1*
r-cowplot=1.* \
r-ggally=1.5.* \
r-gridextra=2.3.* \
r-infer=0.5.* \
r-testthat=2.3.* \
r-rpostgres=1.2.*

USER root
RUN pip install git+https://github.com/data-8/nbgitpuller \
&& jupyter serverextension enable --sys-prefix 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 lab build
RUN useradd -m -s /bin/bash -N -u 9999 jupyter
USER jupyter
# Configure environment
ENV NB_USER=jupyter \
NB_UID=9999
ENV HOME=/home/$NB_USER
WORKDIR $HOME
WORKDIR $HOME
16 changes: 7 additions & 9 deletions r-dsci-grading/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ FROM $BASE_CONTAINER

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

RUN conda install --quiet --yes -c anaconda jupyter_client \
python-dateutil
USER root

# install Rise slide extension
RUN conda install --quiet --yes -c conda-forge rise

# install nbgrader and fix run issues
RUN pip install alembic
RUN pip install git+https://github.com/jupyter/nbgrader
RUN yes | pip uninstall ipython
RUN pip install ipykernel
RUN jupyter nbextension install --sys-prefix --py nbgrader --overwrite
# install nbgrader
RUN pip install nbgrader==0.6.1
RUN jupyter nbextension install --sys-prefix --py nbgrader --overwrite
RUN jupyter nbextension enable --sys-prefix --py nbgrader
RUN jupyter serverextension enable --sys-prefix --py nbgrader
RUN jupyter serverextension enable --sys-prefix --py nbgrader

USER $NB_UIDenable --sys-prefix --py nbgrader

0 comments on commit dc0f67a

Please sign in to comment.