diff --git a/jupyterhub/base/Dockerfile b/jupyterhub/base/Dockerfile index 9946bfd065199e3fc9080128a054b78eba19d647..bd65e65ac305694483f06371b7e1110541ea63d1 100755 --- a/jupyterhub/base/Dockerfile +++ b/jupyterhub/base/Dockerfile @@ -41,9 +41,9 @@ RUN python${JUPYTERHUB_PYTHON_VERSION} -m pip --no-cache-dir install \ python${JUPYTERHUB_PYTHON_VERSION} -m pip --no-cache-dir install jupyterlab-git && \ python${JUPYTERHUB_PYTHON_VERSION} -m jupyter lab build -RUN mkdir -p ~/.venv && \ - python${JUPYTERHUB_PYTHON_VERSION} -m venv ~/.venv/robofish && \ - . ~/.venv/robofish/bin/activate && \ +RUN mkdir -p /usr/local/venv && \ + python${JUPYTERHUB_PYTHON_VERSION} -m venv /usr/local/venv/default && \ + . /usr/local/venv/default/bin/activate && \ python${JUPYTERHUB_PYTHON_VERSION} -m pip --no-cache-dir install --upgrade pip==20.2.2 && \ pip --no-cache-dir install --upgrade setuptools==49.1.0 && \ pip install tensorflow==1.15.3 && \ @@ -70,11 +70,12 @@ RUN mkdir -p ~/.venv && \ sklearn \ 'mxnet-cu101>=1.6.0,<1.7.0' \ && \ - ipython kernel install --user --name=robofish + ipython kernel install --user --name=default -COPY jupyter_notebook_config.py /root/.jupyter/ -ENV JUPYTERLAB_SETTINGS_DIR=/data/home/.config/jupyter/lab/user-settings -ENV JUPYTERLAB_WORKSPACES_DIR=/data/home/.config/jupyter/lab/workspaces +COPY jupyter_notebook_config.py /etc/jupyter/ +ENV JUPYTER_CONFIG_DIR=/etc/jupyter +ENV JUPYTERLAB_SETTINGS_DIR=/root/.config/jupyter/lab/user-settings +ENV JUPYTERLAB_WORKSPACES_DIR=/root/.config/jupyter/lab/workspaces RUN chmod -x /etc/update-motd.d/* RUN mkdir /data diff --git a/jupyterhub/base/jupyter_notebook_config.py b/jupyterhub/base/jupyter_notebook_config.py index c80131fdff8bf87425a384c400e5e3313cc3c9c5..3a2a84764a92ab9b6b3e8f39b86071b47d854f6e 100755 --- a/jupyterhub/base/jupyter_notebook_config.py +++ b/jupyterhub/base/jupyter_notebook_config.py @@ -1,4 +1,4 @@ c.NotebookApp.allow_root = True c.NotebookApp.terminado_settings = {"shell_command": ["/bin/bash", "-l"]} -c.MultiKernelManager.default_kernel_name = "robofish" -c.NotebookApp.notebook_dir = "/data" +c.MultiKernelManager.default_kernel_name = "default" +c.NotebookApp.notebook_dir = "/root"