| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,16 @@ | |||
| 1 | + #!/bin/bash | ||
| 2 | + set -e | ||
| 3 | + | ||
| 4 | + docker pull continuumio/anaconda3:latest | ||
| 5 | + docker build --rm --no-cache -t kaggle/python-build . | ||
| 6 | + | ||
| 7 | + rm -rf /tmp/python-build | ||
| 8 | + mkdir -p /tmp/python-build/tmp | ||
| 9 | + mkdir -p /tmp/python-build/devshm | ||
| 10 | + mkdir -p /tmp/python-build/working | ||
| 11 | + docker run --rm -it --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' | ||
| 12 | + | ||
| 13 | + | ||
| 14 | + # The test_build.py script creates a plot called plot1.png; check that it exists | ||
| 15 | + [ -s /tmp/python-build/working/plot1.png ] || exit 1 | ||
| 16 | + | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments