FROM jupyter/tensorflow-notebook # FROM jupyter/scipy-notebook # just commented out #FROM jupyter/minimal-notebook USER root # Install system utilities with apt RUN apt-get update && \ apt-get install -y --no-install-recommends openssh-client rsync unison less tree curl gdb imagemagick libopenjp2-7 sagemath && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* # Setup default prompt RUN echo 'export PS1=`echo $JUPYTERHUB_USER| sed s/-at-.*//`"@jupyterhub:\w\$ "' > /etc/profile.d/02-prompt.sh # Hack to override the setting of PS1 in the users's bashrc RUN ln -s /etc/profile.d/02-prompt.sh /etc/bash_completion # Enable extended file globs in bash RUN echo 'shopt -s extglob' > /etc/profile.d/03-extglob.sh USER $NB_UID # Install the base software stack RUN conda update -n base -c conda-forge --update-all COPY environment.yml . RUN conda env update -n base -f environment.yml && rm environment.yml # Install the software stack for each of the following repositories RUN for REPO in \ https://gitlab.u-psud.fr/MethNum/scripts.git \ https://gitlab.u-psud.fr/Info111/outbound.git \ https://gitlab.u-psud.fr/Info122/Info122.git \ https://github.com/madclam/info113/ \ https://github.com/nthiery/M1-ISD-AlgorithmiqueAvancee \ https://gitlab.u-psud.fr/nicolas.thiery/ter-jupyter \ ; do \ echo =================================================;\ echo Installing software stack for: ;\ echo $REPO ;\ echo =================================================;\ git clone $REPO repo && \ (cd repo; test -d binder && cd binder; mamba env update -n base -f environment.yml) && \ rm -rf repo || \ break 0; \ done # Enable the Visual Studio proxy extension in notebook and lab # Taken from https://github.com/betatim/vscode-binder/blob/master/postBuild RUN jupyter serverextension enable --py jupyter_server_proxy RUN jupyter labextension install @jupyterlab/server-proxy #RUN code-server --install-extension ms-python.python # Install unpackaged jupyterlab extensions and force jupyterlab rebuild RUN jupyter labextension install @wallneradam/run_all_buttons