fix: jupyterlab runtime volume permissions (#7407)
This commit is contained in:
Родитель
16ae921ff0
Коммит
603d0adbf8
|
@ -79,6 +79,9 @@ RUN python3 -m pip install -r /tmp/requirements.txt --quiet --no-cache-dir \
|
|||
# s6 - copy scripts
|
||||
COPY --chown=${NB_USER}:users --chmod=755 s6/ /etc
|
||||
|
||||
# configure - jupyter
|
||||
RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
|
||||
|
||||
# s6 - 01-copy-tmp-home
|
||||
USER root
|
||||
RUN mkdir -p /tmp_home \
|
||||
|
@ -86,9 +89,4 @@ RUN mkdir -p /tmp_home \
|
|||
&& chown -R ${NB_USER}:users /tmp_home
|
||||
USER $NB_UID
|
||||
|
||||
# generate jupyter config
|
||||
RUN jupyter notebook --generate-config \
|
||||
&& jupyter lab --generate-config \
|
||||
&& jupyter labextension disable "@jupyterlab/apputils-extension:announcements"
|
||||
|
||||
EXPOSE 8888
|
|
@ -1,4 +1,9 @@
|
|||
#!/command/with-contenv bash
|
||||
|
||||
# the runtime directory must be a path that is NOT a persistent volume
|
||||
# as volumes often cause permission issues https://github.com/jupyter/notebook/issues/5058
|
||||
export JUPYTER_RUNTIME_DIR="/tmp/jupyter_runtime"
|
||||
|
||||
cd "${HOME}"
|
||||
exec /opt/conda/bin/jupyter lab \
|
||||
--notebook-dir="${HOME}" \
|
||||
|
@ -9,5 +14,6 @@ exec /opt/conda/bin/jupyter lab \
|
|||
--ServerApp.token="" \
|
||||
--ServerApp.password="" \
|
||||
--ServerApp.allow_origin="*" \
|
||||
--ServerApp.base_url="${NB_PREFIX}" \
|
||||
--ServerApp.authenticate_prometheus=False
|
||||
--ServerApp.allow_remote_access=True \
|
||||
--ServerApp.authenticate_prometheus=False \
|
||||
--ServerApp.base_url="${NB_PREFIX}"
|
||||
|
|
Загрузка…
Ссылка в новой задаче