| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,9 +13,14 @@ fi | |||
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | 15 | rm -rf /tmp/python-build | |
| 16 | + docker rm jupyter_test || true | ||
| 16 | 17 | mkdir -p /tmp/python-build/tmp | |
| 17 | 18 | mkdir -p /tmp/python-build/devshm | |
| 18 | 19 | mkdir -p /tmp/python-build/working | |
| 20 | + # Check that Jupyter server can run; if it dies on startup, the `docker kill` command will throw an error | ||
| 21 | + docker run -d --name=jupyter_test --read-only --net=none -e HOME=/tmp -v $PWD:/input:ro -v /tmp/python-build/working:/working -w=/working -v /tmp/python-build/tmp:/tmp -v /tmp/python-build/devshm:/dev/shm kaggle/python-build jupyter notebook --allow-root | ||
| 22 | + sleep 3 | ||
| 23 | + docker kill jupyter_test && docker rm jupyter_test | ||
| 19 | 24 | docker run --rm -t --read-only --net=none -e HOME=/tmp -v $PWD:/input:ro -v /tmp/python-build/working:/working -w=/working -v /tmp/python-build/tmp:/tmp -v /tmp/python-build/devshm:/dev/shm kaggle/python-build /bin/bash -c 'python /input/test_build.py' | |
| 20 | 25 | ||
| 21 | 26 | # The test_build.py script creates a plot called plot1.png; check that it exists | |
| Back | FazBrowse Home | New Git URL |
0 commit comments