Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
Don't fail Datalab startup if docs cloning fails (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
yebrahim committed Oct 21, 2016
1 parent c141f0f commit 88553f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions containers/datalab/content/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ fi

mkdir -p /content/datalab/notebooks

# Fetch docs and tutorials. This should not abort startup if it fails
{
if [ -d /content/datalab/docs ]; then
# The docs directory already exists, so we have to either update or initialize it as a git repository
pushd ./
Expand All @@ -178,6 +180,7 @@ else
(cd /content/datalab; git clone -n --single-branch https://github.com/googledatalab/notebooks.git docs)
fi
(cd /content/datalab/docs; git config core.sparsecheckout true; echo $'intro/\nsamples/\ntutorials/\n*.ipynb\n' > .git/info/sparse-checkout; git checkout master)
} || echo "Fetching tutorials and samples failed."

# Run the user's custom extension script if it exists. To avoid platform issues with
# execution permissions, line endings, etc, we create a local sanitized copy.
Expand Down

0 comments on commit 88553f1

Please sign in to comment.