-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdarkflow-gpu-nvidia-92.def
54 lines (40 loc) · 1.3 KB
/
darkflow-gpu-nvidia-92.def
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
bootstrap: docker
from: tensorflow/tensorflow:latest-gpu
%environment
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.2/lib64/:/usr/lib/x86_64-linux-gnu/:/usr/lib/nvidia-396/
%post
apt-get update
apt-get install -y git
# fum boilerplate
cd /
git clone https://github.com/rstorlabs/fum-tools.git
apt-get install -y python3 python3-pip cython3
/fum-tools/fum-initialize.sh --persistent python3
apt-get install -y cmake gcc gfortran g++ curl autoconf bzip2 unzip ffmpeg
apt-get install -y libsm6 libxrender1 libfontconfig1
pip3 install --upgrade pip==9.0.3
pip3 install opencv-python numpy Pillow scipy tensorflow
pip3 install --trusted-host pypi.python.org moviepy
mkdir -p /app /liboverride /libfallback /prj /localscratch /localflash /opt /scratch /LICENSE
cd /app
ln -s /usr/bin/python3 /usr/bin/python
# metadata registry
cat << EOF | /fum-tools/metadata.sh
{
"architecture":{
"isa":"x86",
"kernel":{"version":"~> 4.8"},
"gpu":{"vendor":"NVIDIA", "driver":"CUDA", "version":"== 9.2"}
},
"class":"c153a632-5d9a-43be-9f8d-554c25e9f70f",
"name":"DarkFlow",
"version":"0.0.1",
"distro":"Ubuntu",
"manifest":[
"wget", "vim", "git", "numpy", "Pillow", "scipy", "tensorflow"
]
}
EOF
%runscript
. /fum-tools/fum-preamble.sh "$@"
"$script_dir/run.sh"