-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·54 lines (46 loc) · 2.26 KB
/
Dockerfile
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
FROM centos:6.8
RUN yum -y update && \
yum -y install java-1.7.0-openjdk libgomp wget unzip zip xorg-x11-server-Xvfb ghostscript && \
yum install -y yum-utils && \
yum groupinstall -y development && \
yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel && \
wget http://www.python.org/ftp/python/3.3.3/Python-3.3.3.tar.xz && \
yum install xz-libs && \
xz -d Python-3.3.3.tar.xz && \
tar -xvf Python-3.3.3.tar && \
cd Python-3.3.3 && \
./configure && \
make && make altinstall && \
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz && \
tar -xvf setuptools-1.4.2.tar.gz && \
cd setuptools-1.4.2 && \
python3.3 setup.py install && \
curl https://bootstrap.pypa.io/get-pip.py | python3.3 - &&\
pip install pyyaml && \
mkdir /tmp/matlab_mcr && \
cd /tmp/matlab_mcr/ && \
wget https://www.mathworks.com/supportfiles/MCR_Runtime/R2013a/MCR_R2013a_glnxa64_installer.zip && \
unzip MCR_R2013a_glnxa64_installer.zip && \
./install -agreeToLicense yes -mode silent && \
cd .. && \
rm -rf /tmp/matlab_mcr && \
mkdir /INPUTS && \
mkdir /OUTPUTS && \
mkdir /extra
# Copy binaries and other files
ADD extra /extra
# Set path for temporal lobe
ENV PATH "${PATH}:/extra/antsbin/bin:/extra/nifti_reg_11_20_15/niftireg-git/build/reg-apps:/extra/ANTs-build/bin"
# Set home directory in OUTPUTS folder
ENV HOME /OUTPUTS/.local/home
# Set tmp directory in OUTPUTS folder
ENV TMPDIR /OUTPUTS/.local/tmp
ENV TEMP /OUTPUTS/.local/tmp
ENV TMP /OUTPUTS/.local/tmp
# Set up LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH "/usr/lib64"
# Set environment for MATLAB MCR
ENV LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/bin/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/sys/java/jre/glnxa64/jre/lib/amd64"
ENV XAPPLRESDIR "/usr/local/MATLAB/MATLAB_Compiler_Runtime/v81/X11/app-defaults"
# Set CMD
CMD /extra/pipeline.sh