-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSingularity
More file actions
67 lines (54 loc) · 1.22 KB
/
Singularity
File metadata and controls
67 lines (54 loc) · 1.22 KB
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
Bootstrap: docker
From: python:2.7
%files
. /code
%environment
PATH=/opt/anaconda2/bin:$PATH
export PATH
%runscript
export DISPLAY=:99.0
exec xvfb-run /opt/anaconda2/bin/python /code/main.py
%post
DEBIAN_FRONTEND=noninteractive
apt-get update && \
apt-get install -y \
build-essential \
cmake \
git \
wget \
unzip \
yasm \
xvfb \
xorg \
pkg-config \
libswscale-dev \
libtbb2 \
libtbb-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libjasper-dev \
libavformat-dev \
libpq-dev
# Python 2
wget https://repo.continuum.io/archive/Anaconda2-4.4.0-Linux-x86_64.sh
bash Anaconda2-4.4.0-Linux-x86_64.sh -b -p /opt/anaconda2
/opt/anaconda2/bin/conda install numpy
/opt/anaconda2/bin/pip install nolearn
/opt/anaconda2/bin/pip install scikit-learn==0.15.2
mkdir /data
# Install Pydicom
cd /opt
git clone https://www.github.com/pydicom/pydicom
git clone https://www.github.com/pydicom/deid
cd /opt/pydicom
/opt/anaconda2/bin/python setup.py install
cd /opt/deid
/opt/anaconda2/bin/python setup.py install
cd /opt
if [ ! -d "/data" ]; then
mkdir /data
fi
if [ ! -d "/code" ]; then
mkdir /code
fi