FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docker-python/build at master · mrisdal/docker-python · GitHub
mrisdal
/
docker-python
Public
forked from
Kaggle/docker-python
Notifications
You must be signed in to change notification settings
Fork
3
Star
4
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
docker-python
/
build
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
25 lines (19 loc) · 1.01 KB
Breadcrumbs
docker-python
/
build
Copy path
File metadata and controls
executable file
·
25 lines (19 loc) · 1.01 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!
/bin/bash
set
-e
#
Default behavior is to do everything from scratch.
#
The --use-cache option is useful if you're iterating on a broken build.
if
[[
"
$1
"
==
"
--use-cache
"
]]
;
then
docker build --rm --cpu-period=100000 --cpu-quota=200000 -t kaggle/python-build
.
else
docker pull continuumio/anaconda3:latest
docker build --rm --no-cache --cpu-period=100000 --cpu-quota=200000 -t kaggle/python-build
.
fi
rm -rf /tmp/python-build
mkdir -p /tmp/python-build/tmp
mkdir -p /tmp/python-build/devshm
mkdir -p /tmp/python-build/working
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
'
#
The test_build.py script creates a plot called plot1.png; check that it exists
[
-s
/tmp/python-build/working/plot1.png ]
||
exit
1
docker tag kaggle/python-build:latest kaggle/python:latest
docker push kaggle/python:latest
Back
|
FazBrowse Home
|
New Git URL