@@ -74,11 +74,11 @@ RUN curl -sSL http://neuro.debian.net/lists/vivid.de-m.full | tee /etc/apt/sourc
74
74
apt-get update && \
75
75
apt-get install -y fsl-core afni
76
76
77
- RUN echo '#!/bin/bash' > /etc/profile.d/nipype .sh && \
78
- echo 'export ANTSPATH=/opt/ants' >> /etc/profile.d/nipype .sh && \
79
- echo 'export PATH=$ANTSPATH:$PATH' >> /etc/profile.d/nipype .sh && \
80
- echo 'source /etc/fsl/fsl.sh' >> /etc/profile.d/nipype .sh && \
81
- echo 'source /etc/afni/afni.sh' >> /etc/profile.d/nipype .sh
77
+ RUN echo '#!/bin/bash' > /etc/profile.d/nipype_deps .sh && \
78
+ echo 'export ANTSPATH=/opt/ants' >> /etc/profile.d/nipype_deps .sh && \
79
+ echo 'export PATH=$ANTSPATH:$PATH' >> /etc/profile.d/nipype_deps .sh && \
80
+ echo 'source /etc/fsl/fsl.sh' >> /etc/profile.d/nipype_deps .sh && \
81
+ echo 'source /etc/afni/afni.sh' >> /etc/profile.d/nipype_deps .sh
82
82
83
83
# Clear apt cache to reduce image size
84
84
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
@@ -96,9 +96,9 @@ RUN echo "destinationFolder=/root/mcr" > mcr_options.txt && \
96
96
unzip matlab_installer/installer.zip -d matlab_installer/ && \
97
97
matlab_installer/install -inputFile mcr_options.txt && \
98
98
rm -rf matlab_installer mcr_options.txt && \
99
- echo 'export LD_LIBRARY_PATH=/root/mcr/v85/runtime/glnxa64:/root/mcr/v85/bin/glnxa64:/root/mcr/v85/sys/os/glnxa64:$LD_LIBRARY_PATH' >> /etc/profile.d/nipype .sh && \
100
- echo 'export SPMMCRCMD="/root/spm12/run_spm12.sh /root/mcr/v85/ script"' >> /etc/profile.d/nipype .sh && \
101
- echo 'export FORCE_SPMMCR=1' >> /etc/profile.d/nipype .sh
99
+ echo 'export LD_LIBRARY_PATH=/root/mcr/v85/runtime/glnxa64:/root/mcr/v85/bin/glnxa64:/root/mcr/v85/sys/os/glnxa64:$LD_LIBRARY_PATH' >> /etc/profile.d/nipype_deps .sh && \
100
+ echo 'export SPMMCRCMD="/root/spm12/run_spm12.sh /root/mcr/v85/ script"' >> /etc/profile.d/nipype_deps .sh && \
101
+ echo 'export FORCE_SPMMCR=1' >> /etc/profile.d/nipype_deps .sh
102
102
103
103
ENV LD_LIBRARY_PATH "/root/mcr/v85/runtime/glnxa64:/root/mcr/v85/bin/glnxa64:/root/mcr/v85/sys/os/glnxa64:$LD_LIBRARY_PATH"
104
104
ENV SPMMCRCMD "/root/spm12/run_spm12.sh /root/mcr/v85/ script"
@@ -109,7 +109,7 @@ RUN curl -sSL http://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/dev/sp
109
109
unzip spm12.zip && \
110
110
rm -rf spm12.zip
111
111
112
- RUN echo "source /etc/profile.d/nipype .sh" >> /etc/bash.bashrc
112
+ RUN echo "source /etc/profile.d/nipype_deps .sh" >> /etc/bash.bashrc
113
113
114
114
CMD ["/bin/bash" ]
115
115
0 commit comments