Skip to content

Commit

Permalink
Update entrypoint.sh (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatoriu authored Nov 29, 2023
1 parent f3b5f96 commit 9cbf22d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jupyterlab3/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ done
export NOTEBOOKLIBPATH=$(find /opt/conda/lib/ -maxdepth 3 -type d -name "notebook")
export JUPYTERSERVERLIBPATH=$(find /opt/conda/lib -maxdepth 3 -type d -name "jupyter_server")

# Fix "fatal: not a git repository" error on startup
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1

read -r -d '' JUPYTER_PATCH << EOM
# Fix for Tornado's inability to handle proxy requests
from tornado.routing import _RuleList
Expand Down Expand Up @@ -164,4 +167,4 @@ elif [[ $VERSION > '3' ]] && [[ $VERSION < '4' ]]; then
jupyter lab --ip=0.0.0.0 --port=3100 --allow-root --ContentsManager.allow_hidden=True --ServerApp.token='' --ServerApp.base_url=$PREVIEW_URL --no-browser --debug --ServerApp.disable_check_xsrf=True --ResourceUseDisplay.mem_limit=$MEMORY --ResourceUseDisplay.mem_warning_threshold=0.2
else
echo "Error! Jupyterlab version not supported."
fi
fi

0 comments on commit 9cbf22d

Please sign in to comment.