Linux/Docker/Dockerfile
Ubuntu Test Container
FROM ubuntu USER root RUN apt-get update -q --fix-missing && \ apt-get -y upgrade && \ apt-get -y install --no-install-recommends \ ca-certificates \ openssl \ sudo \ curl \ locales \ net-tools \ iputils-ping \ dnsutils \ nmap \ mc
JupyterHub + JupyterLab
FROM ubuntu:18.04 ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -q --fix-missing && \ apt-get -y upgrade && \ apt-get -y install --no-install-recommends \ wget \ bzip2 \ ca-certificates \ sudo \ locales \ tzdata \ fonts-liberation \ imagemagick \ librsvg2-bin \ ttf-dejavu \ git \ python3-dev \ python3-pip \ python3-setuptools \ python3-psutil \ openjdk-11-jdk \ npm nodejs \ mdbtools && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ rm -rf /usr/share/locale/* && \ rm -rf /usr/share/man/* && \ rm -rf /usr/share/doc/* RUN locale-gen de_DE.UTF-8 ENV RUN sudo echo "Europe/Berlin" > /etc/timezone RUN sudo dpkg-reconfigure -f noninteractive tzdata RUN groupadd jupyter && \ useradd -ms /bin/bash -g jupyter -G sudo jupyter && \ echo 'jupyter:jupyter' | chpasswd && \ mkdir /home/jupyter/notebooks && \ chown -R jupyter:jupyter /home/jupyter && \ mkdir -p /srv/jupyternotebook && \ chown -R jupyter:jupyter /srv/jupyternotebook && \ mkdir -p /srv/ijava && \ chown -R jupyter:jupyter /srv/ijava RUN python3 -m pip install --upgrade pip && \ npm install -g configurable-http-proxy && \ python3 -m pip install jupyterhub && \ python3 -m pip install jupyter && \ python3 -m pip install jupyterlab && \ python3 -m pip install jupyter_contrib_nbextensions && \ python3 -m pip install jupyterlab-git && \ python3 -m pip install nbdime COPY jupyterhub/jupyterhub_config.py /etc/jupyter/ COPY jupyternotebook/jupyter_notebook_config.py /etc/jupyter/ COPY jupyternotebook /srv/jupyternotebook RUN jupyter contrib nbextension install --system RUN jupyter labextension install @jupyterlab/hub-extension RUN jupyter labextension install @jupyterlab/git RUN jupyter serverextension enable --py jupyterlab_git #RUN nbdime config-git --enable --global #RUN jupyter serverextension enable --py nbdime #RUN jupyter nbextension install --py nbdime #RUN jupyter nbextension enable --py nbdime #RUN jupyter labextension link ./packages/nbdime --no-build #RUN jupyter labextension install ./packages/labextension COPY ijava /srv/ijava WORKDIR /srv/ijava/ RUN python3 install.py --sys-prefix COPY python/requirements.txt /srv/jupyternotebook RUN python3 -m pip install -r /srv/jupyternotebook/requirements.txt RUN mkdir -p /srv/jupyterhub/ WORKDIR /srv/jupyterhub/ EXPOSE 8000 CMD jupyterhub --config=/etc/jupyter/jupyterhub_config.py