@@ -31,8 +31,9 @@ MAINTAINER Nipype developers
31
31
32
32
# Preparations
33
33
RUN ln -snf /bin/bash /bin/sh
34
- ARG DEBIAN_FRONTEND=noninteractive
34
+ ENV SHELL /bin/bash
35
35
36
+ ARG DEBIAN_FRONTEND=noninteractive
36
37
RUN sed -i -e 's,main$,main contrib non-free,g' /etc/apt/sources.list.d/neurodebian.sources.list && \
37
38
apt-get -y update && \
38
39
apt-get install -y curl \
@@ -48,14 +49,14 @@ RUN sed -i -e 's,main$,main contrib non-free,g' /etc/apt/sources.list.d/neurodeb
48
49
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
49
50
echo ". /etc/fsl/fsl.sh" >> /etc/bash.bashrc
50
51
51
- ENV FSLDIR=/usr/share/fsl/5.0
52
- ENV FSLOUTPUTTYPE=NIFTI_GZ
53
- ENV PATH=/usr/lib/fsl/5.0:$PATH
54
- ENV FSLMULTIFILEQUIT=TRUE
55
- ENV POSSUMDIR=/usr/share/fsl/5.0
56
- ENV LD_LIBRARY_PATH=/usr/lib/fsl/5.0:$LD_LIBRARY_PATH
57
- ENV FSLTCLSH=/usr/bin/tclsh
58
- ENV FSLWISH=/usr/bin/wish
52
+ ENV FSLDIR=/usr/share/fsl/5.0 \
53
+ FSLOUTPUTTYPE=NIFTI_GZ \
54
+ PATH=/usr/lib/fsl/5.0:$PATH \
55
+ FSLMULTIFILEQUIT=TRUE \
56
+ POSSUMDIR=/usr/share/fsl/5.0 \
57
+ LD_LIBRARY_PATH=/usr/lib/fsl/5.0:$LD_LIBRARY_PATH \
58
+ FSLTCLSH=/usr/bin/tclsh \
59
+ FSLWISH=/usr/bin/wish
59
60
60
61
# Install Matlab: from the good old install_spm_mcr.sh of @chrisfilo
61
62
WORKDIR /opt
@@ -79,5 +80,25 @@ RUN curl -sSL http://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/dev/sp
79
80
unzip spm12.zip && \
80
81
rm -rf spm12.zip
81
82
83
+ WORKDIR /root
84
+ # Install miniconda
85
+ RUN curl -sSLO https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh && \
86
+ /bin/bash Miniconda-latest-Linux-x86_64.sh -b -p /usr/local/miniconda && \
87
+ rm Miniconda-latest-Linux-x86_64.sh
88
+
89
+ ENV PATH /usr/local/miniconda/bin:$PATH
90
+
91
+ # http://bugs.python.org/issue19846
92
+ # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
93
+ ENV LANG C.UTF-8
94
+
95
+ # Add conda-forge channel in conda
96
+ RUN conda config --add channels conda-forge && \
97
+ conda install -y lockfile nipype matplotlib sphinx boto coverage dipy
98
+
99
+ # Install run scripts
100
+ COPY docker/circleci/run_* /usr/bin/
101
+ RUN chmod +x /usr/bin/run_*
102
+
82
103
CMD ["/bin/bash" ]
83
104
0 commit comments