-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_recipe.def
182 lines (169 loc) · 5.83 KB
/
test_recipe.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
BootStrap: docker
From: ubuntu:18.04
%labels
Author: Leslie M. Wubbel
Maintainer: Leslie M. Wubbel
Version: v0.0.1
%post
apt-get update -y
apt-get install wget -y
apt-get install git -y
## Basic installations
apt-get update -y
apt install software-properties-common -y
apt-add-repository universe -y
# Install miniconda3 ### reference from Author: Jason C. Nucciarone
if [ ! -d /usr/local/miniconda ]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \
-O ~/anaconda.sh && \
bash ~/anaconda.sh -b -p /usr/local/miniconda && \
rm ~/anaconda.sh
fi
# Initialize environment and update conda
export PATH=/usr/local/miniconda/bin:${PATH}
export LD_LIBRARY_PATH=/usr/local/miniconda/lib:${LD_LIBRARY_PATH}
conda update conda
## Conda installation list
conda install -y cudatoolkit=9.0
## Nivida drivers
# https://www.mvps.net/docs/install-nvidia-drivers-ubuntu-18-04-lts-bionic-beaver-linux/
add-apt-repository ppa:graphics-drivers/ppa
apt install nvidia-cuda-toolkit -y
nvcc -V
apt install clinfo -y
apt update -y
apt install nvidia-driver-390 -y 31
### ACI
#Set up the environment $ export PATH=/usr/local/cuda-9.1/bin:$PATH $ export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64:$LD_LIBRARY_PATH $ export CPATH=/usr/local/cuda-9.1/samples/common/inc:$CPATH
DEBIAN_FRONTEND=noninteractive
apt-get install keyboard-configuration
## Software needed to run OpenCV
apt-get update -y
apt install software-properties-common -y
apt-add-repository universe -y
## Software needed to run OpenCV
apt install libgl1-mesa-glx libgl1-mesa-dev libdbus-1-3 libdbus-1-dev \
libnss3 libxcomp3 libxcomposite1 libxcomposite-dev libxcursor1 \
libxcursor-dev libxi6 libxi-dev libxtst6 libxtst-dev libxt6 \
libxt-dev libasound2 -y
apt install python3.7 -y
## pip install requirements
##
##
# Initialize environment and update conda
#export PATH=/usr/local/miniconda/bin:${PATH}
#export LD_LIBRARY_PATH=/usr/local/miniconda/lib:${LD_LIBRARY_PATH}
apt-get install python3-pip -y
pip3 install --upgrade pip
pip3 install --upgrade setuptools
pip3 install wheel
pip3 install scikit-learn
pip3 install opencv-python
pip3 install absl-py==0.9.0
pip3 install appdirs==1.4.4
pip3 install attrs==19.3.0
pip3 install black==19.10b0
pip3 install cachetools==4.1.1
pip3 install certifi==2020.6.20
pip3 install chardet==3.0.4
pip3 install click==7.1.2
pip3 install coverage==5.2.1
pip3 install cycler==0.10.0
pip3 install decorator==4.4.2
pip3 install dill==0.3.2
pip3 install filelock==3.0.12
pip3 install flake8==3.8.3
pip3 install flake8-bugbear==20.1.4
pip3 install flake8-comprehensions==3.2.3
pip3 install flake8-executable==2.0.3
pip3 install flake8-polyfill==1.0.2
pip3 install flake8-pyi==20.5.0
pip3 install future==0.18.2
pip3 install gdown==3.12.0
pip3 install google-auth==1.20.1
pip3 install google-auth-oauthlib==0.4.1
pip3 install grpcio==1.31.0
pip3 install h5py==2.10.0
pip3 install idna==2.10
pip3 install imageio==2.9.0
pip3 install importlab==0.5.1
pip3 install importlib-metadata==1.7.0
pip3 install isort==5.3.2
pip3 install joblib==0.16.0
pip3 install kiwisolver==1.2.0
pip3 install Markdown==3.2.2
pip3 install matplotlib==3.3.0
pip3 install mccabe==0.6.1
pip3 install meshio==4.0.16
pip3 install monai==0.2.0
pip3 install mypy==0.782
pip3 install mypy-extensions==0.4.3
pip3 install networkx==2.4
pip3 install nibabel==3.1.1
pip3 install ninja==1.10.0.post1
pip3 install numpy==1.19.1
pip3 install oauthlib==3.1.0
pip3 install opencv-python==4.4.0.46
pip3 install packaging==20.4
pip3 install pandas==1.1.0
pip3 install parameterized==0.7.4
pip3 install pathspec==0.8.0
pip3 install pep8-naming==0.11.1
pip3 install Pillow==7.2.0
pip3 install plotly==4.9.0
pip3 install protobuf==3.12.4
pip3 install pyasn1==0.4.8
pip3 install pyasn1-modules==0.2.8
pip3 install pycodestyle==2.6.0
pip3 install pydicom==2.0.0
pip3 install pyflakes==2.2.0
pip3 install pyparsing==2.4.7
pip3 install PySocks==1.7.1
pip3 install python-dateutil==2.8.1
pip3 install pytorch-ignite==0.3.0
pip3 install pytype==2020.8.10
pip3 install pytz==2020.1
pip3 install pyvista==0.25.3
pip3 install PyWavelets==1.1.1
pip3 install PyYAML==5.3.1
pip3 install redis==3.5.3
pip3 install regex==2020.7.14
pip3 install requests==2.24.0
pip3 install requests-oauthlib==1.3.0
pip3 install retrying==1.3.3
pip3 install rsa==4.6
pip3 install scikit-image==0.17.2
pip3 install scikit-learn==0.23.1
pip3 install scipy==1.5.2
pip3 install scooby==0.5.6
pip3 install SimpleITK==2.0.1
pip3 install six==1.15.0
pip3 install sklearn==0.0
pip3 install tensorboard==2.3.0
pip3 install tensorboard-plugin-wit==1.7.0
pip3 install threadpoolctl==2.1.0
pip3 install tifffile==2020.7.24
pip3 install toml==0.10.1
pip3 install torch==1.6.0
pip3 install torchvision==0.7.0
pip3 install tqdm==4.48.2
pip3 install typed-ast==1.4.1
pip3 install typing-extensions==3.7.4.2
pip3 install urllib3==1.25.10
pip3 install vtk==8.1.2
pip3 install Werkzeug==1.0.1
pip3 install wget==3.2
pip3 install zipp==3.1.0
%help
If you run into issues regarding the
use of this container then please
contact the ICDS i-ASK center
%test
grep -q NAME=\"Ubuntu\" /etc/os-release
if [ $? -eq 0 ]; then
echo "Container base is Ubuntu as expected."
else
echo "Container base is not Ubuntu."
exit 1
fi