Dockerfile 1.89 KB
Newer Older
1
#FROM jupyter/minimal-notebook
Nicolas M. Thiéry's avatar
Nicolas M. Thiéry committed
2
FROM jupyter/scipy-notebook
Marco Leoni's avatar
Marco Leoni committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16

# Use apt to install rsync, ssh, less, tree
USER root
RUN apt-get update && \
    apt-get install -y --no-install-recommends openssh-client rsync unison less tree curl gdb imagemagick && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

RUN echo 'export PS1=`echo $JUPYTERHUB_USER| sed s/-at-u-psud.fr//`"@jupyterhub \w \$ "' > /root/.bash_profile

# Use conda to install the software stack from the relevant repositories

USER $NB_UID

17
RUN conda update  -n base -c conda-forge --update-all
Marco Leoni's avatar
Marco Leoni committed
18 19 20
RUN conda install -n base -c conda-forge mamba

RUN for REPO in                                                \
Nicolas M. Thiéry's avatar
Nicolas M. Thiéry committed
21
        https://gitlab.u-psud.fr/MethNum/scripts.git           \
Marco Leoni's avatar
Marco Leoni committed
22 23 24 25 26 27 28 29 30 31 32
        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                        &&         \
Nicolas M. Thiéry's avatar
Nicolas M. Thiéry committed
33
        (cd repo; test -d binder && cd binder; conda env update -n base -f environment.yml) &&         \
Marco Leoni's avatar
Marco Leoni committed
34 35 36 37 38 39 40 41
        rm -rf repo                                 ||         \
        break 0;                                               \
    done

# R: potential users at STAPS
# FactoMineR package: used by Albane Saintenoy and students for PCA / clustering
# in the course "Traitement de données hydrologiques" of M2 HSS
RUN mamba install -c conda-forge r r-essentials r-factominer