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

Add automated build script · JasonYangCode/docker-python@8b8a215 · GitHub

Commit 8b8a215

Browse files
committed
Add automated build script
1 parent 85b9c68 commit 8b8a215

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎build‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL