-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (44 loc) · 2.4 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
55
56
57
58
59
60
61
62
from knapenlab/nd:0.0.10gillesdev
RUN ["apt-get", "update"]
RUN ["apt-get", "install", "-y", "zsh"]
RUN wget -qO- "https://cmake.org/files/v3.12/cmake-3.12.2-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local
ENV ANTSPATH="/opt/ants-master/bin" \
PATH="/opt/ants-master/bin:$PATH" \
LD_LIBRARY_PATH="/opt/ants-master/lib:$LD_LIBRARY_PATH"
RUN mkdir -p /tmp/ants/build \
&& git clone https://github.com/ANTsX/ANTs.git /tmp/ants/source \
&& cd /tmp/ants/build \
&& cmake -DBUILD_SHARED_LIBS=ON} /tmp/ants/source \
&& make -j 5 \
&& mkdir -p /opt/ants-master/ \
&& mv bin lib /opt/ants-master/ \
&& mv /tmp/ants/source/Scripts/* /opt/ants-master/bin/ \
&& rm -rf /tmp/ants
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
WORKDIR /src
RUN echo "source activate neuro\n. ${FSLDIR}/etc/fslconf/fsl.sh" >> ~/.zshrc
RUN bash -c "source activate neuro && pip install lxml --upgrade"
RUN apt-get update -qq && apt-get install -y python python-pip python-dev build-essential software-properties-common openjdk-8-jdk
RUN ln -svT "/usr/lib/jvm/java-8-openjdk-$(dpkg --print-architecture)" /docker-java-home
ENV JAVA_HOME /docker-java-home
ENV JCC_JDK /docker-java-home
RUN apt-get install -y jcc
RUN echo "YES"
COPY nighres /nighres
RUN cd /nighres \
&& python3 -m pip install --upgrade pip jcc \
&& ./build.sh \
&& bash -c "source activate neuro && cd /nighres && python setup.py install"
COPY ./analysis /src
COPY nipype.cfg /root/.nipype/nipype.cfg
COPY pymp2rage /pymp2rage
RUN bash -c "source activate neuro && pip uninstall -y pymp2rage && cd /pymp2rage && python setup.py develop"
COPY spynoza /spynoza
RUN bash -c "source activate neuro && pip uninstall -y spynoza && cd /spynoza && python setup.py develop"
COPY ./fmriprep /fmriprep
RUN bash -c "source activate neuro && pip uninstall -y pybids fmriprep && conda install pandas=0.23 && cd /fmriprep && python setup.py develop"
RUN bash -c "source activate neuro && pip install niworkflows --upgrade --no-dependencies && pip install templateflow"
RUN bash -c "source activate neuro && pip uninstall -y nistats && pip install git+https://github.com/nistats/nistats"
RUN git clone https://github.com/kwagstyl/surface_tools.git /surface_tools
COPY ./pycortex /pycortex
RUN bash -c "source activate neuro && pip uninstall -y pycortex && cd /pycortex && python setup.py install"