Project 'jonakarl/jupyterhub' was moved to 'csma/jupyterhub'. Please update any links and bookmarks that may still have the old path.
Select Git revision
-
Jonas Karlsson authored
- Added wrapper script to automatically init a db at first launch of MariaDB kernel - Also added these minor fixes: - Held back jupyterlab_server to 1.2.0 so jupyterlab_latex does not break - Upgraded mshr to latest as the old is not installable anymore - Only initial testing is done with the new library but it does not fail to fail to import (hence the need to fix to the old version)
Jonas Karlsson authored- Added wrapper script to automatically init a db at first launch of MariaDB kernel - Also added these minor fixes: - Held back jupyterlab_server to 1.2.0 so jupyterlab_latex does not break - Upgraded mshr to latest as the old is not installable anymore - Only initial testing is done with the new library but it does not fail to fail to import (hence the need to fix to the old version)
Dockerfile 3.46 KiB
FROM jupyter/datascience-notebook:hub-1.1.0
MAINTAINER jonas.karlsson@kau.se
#APT OPTS
ENV APT_OPTS -y --allow-downgrades --allow-remove-essential --allow-change-held-packages --no-install-recommends --no-install-suggests --allow-unauthenticated
# conda
RUN conda install -c conda-forge mamba \
&& conda clean -ay \
&& find /opt/conda/ -type f,l -name '*.a' -delete \
&& find /opt/conda/ -type f,l -name '*.pyc' -delete \
&& find /opt/conda/ -type f,l -name '*.js.map' -delete \
&& rm -rf /opt/conda/pkgs
RUN mamba install -c conda-forge -c pytorch -c fastai \
nbgitpuller jupyterlab-git \
# Latex
jupyterlab_latex \
# Needed for jupyterlab_latex to work
jupyterlab_server=1.2.0 \
# GPU stuff
pytorch torchvision torchaudio cudatoolkit=11.0 \
fastai=2.2.5 cupy tensorflow \
# Johan G
mesa simpy \
# Omars packages
fenics \
r-essentials \
mshr \
tensorflow \
# c++
xeus-cling \
&& mamba clean -ay \
&& find /opt/conda/ -type f,l -name '*.a' -delete \
&& find /opt/conda/ -type f,l -name '*.pyc' -delete \
&& find /opt/conda/ -type f,l -name '*.js.map' -delete \
&& rm -rf /opt/conda/pkgs
# Install C and other tools that require root
USER root
WORKDIR /tmp
RUN git clone https://github.com/brendan-rius/jupyter-c-kernel.git \
&& pip install --no-cache-dir jupyter-c-kernel/ \
&& cd jupyter-c-kernel && install_c_kernel --user && cd /root/ \
## shell tools
&& apt-get update && apt-get install ${APT_OPTS} iproute2 net-tools curl less openssh-client rsync p7zip-full p7zip-rar \
## MariaDB
&& apt-get install ${APT_OPTS} software-properties-common dirmngr gpg-agent \
&& apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc' \
&& add-apt-repository 'deb [arch=amd64,arm64,ppc64el] https://mirror.dogado.de/mariadb/repo/10.5/ubuntu focal main' \
&& apt-get update && apt-get install ${APT_OPTS} mariadb-server \
# MariaDB kernel
&& python3 -m pip --no-cache-dir install mariadb_kernel \
&& python3 -m mariadb_kernel.install \
# Cleanup
&& apt-get clean ${APT_OPTS} \
&& apt-get autoremove ${APT_OPTS} \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/cache/debconf/*-old \
&& mamba clean -ay \
&& find /opt/conda/ -type f,l -name '*.a' -delete \
&& find /opt/conda/ -type f,l -name '*.pyc' -delete \
&& find /opt/conda/ -type f,l -name '*.js.map' -delete \
&& rm -rf /opt/conda/pkgs \
&& jupyter lab clean \
&& jlpm cache clean \
&& npm cache clean --force \
&& rm -rf $HOME/.node-gyp \
&& rm -rf $HOME/.local \