FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Smoke-test jupyter notebook · JasonYangCode/docker-python@84ee008 · GitHub

Commit 84ee008

Browse files
authored
Smoke-test jupyter notebook
1 parent 3da21b7 commit 84ee008

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎build‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@ fi
1313

1414

1515
rm -rf /tmp/python-build
16+
docker rm jupyter_test || true
1617
mkdir -p /tmp/python-build/tmp
1718
mkdir -p /tmp/python-build/devshm
1819
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
1924
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'
2025

2126
# The test_build.py script creates a plot called plot1.png; check that it exists

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL