Skip to content
Snippets Groups Projects
Commit 0b10cbea authored by calrama's avatar calrama
Browse files

[jupyterhub] Move files out of /root

parent 87849e9b
No related branches found
No related tags found
No related merge requests found
Pipeline #31679 canceled
......@@ -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
......
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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment