File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ ENV PATH=/usr/local/miniconda/bin:$PATH \
167
167
ACCEPT_INTEL_PYTHON_EULA=yes
168
168
169
169
# Installing precomputed python packages
170
- RUN conda config --add channels intel conda-forge && \
170
+ RUN conda config --add channels intel --add channels conda-forge && \
171
171
conda config --set always_yes yes --set changeps1 no && \
172
172
conda update -q conda && \
173
173
conda install -y mkl=2017.0.1 \
@@ -181,11 +181,10 @@ RUN conda config --add channels intel conda-forge && \
181
181
traits=4.6.0 \
182
182
psutil=5.0.1 \
183
183
icu=58.1 && \
184
- chmod +x /usr/local/miniconda/bin/* && \
185
- conda clean --all -y
184
+ chmod +x /usr/local/miniconda/bin/*
186
185
187
186
# matplotlib cleanups: set default backend, precaching fonts
188
- RUN sed -i 's/\( backend *: \) .*$/\1 Agg/g' /usr/local/miniconda/lib/python2.7 /site-packages/matplotlib/mpl-data/matplotlibrc && \
187
+ RUN sed -i 's/\( backend *: \) .*$/\1 Agg/g' /usr/local/miniconda/lib/python3.5 /site-packages/matplotlib/mpl-data/matplotlibrc && \
189
188
python -c "from matplotlib import font_manager"
190
189
191
190
# Unless otherwise specified each process should only use one thread - nipype
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ RUN conda install python=2.7 && \
36
36
COPY docker/files/run_* /usr/bin/
37
37
RUN chmod +x /usr/bin/run_*
38
38
39
+ # matplotlib cleanups: set default backend, precaching fonts
40
+ RUN sed -i 's/\(backend *: \).*$/\1Agg/g' /usr/local/miniconda/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc && \
41
+ python -c "from matplotlib import font_manager"
42
+
39
43
# Re-install nipype
40
44
COPY . /root/src/nipype
41
45
RUN rm -r /usr/local/miniconda/lib/python2.7/site-packages/nipype* && \
Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ RUN rm -r ${FSLDIR}/bin/imglob && \
42
42
chmod +x /usr/bin/fsl_imglob.py && \
43
43
ln -s /usr/bin/fsl_imglob.py ${FSLDIR}/bin/imglob
44
44
45
+ # matplotlib cleanups: set default backend, precaching fonts
46
+ RUN sed -i 's/\(backend *: \).*$/\1Agg/g' /usr/local/miniconda/lib/python3.4/site-packages/matplotlib/mpl-data/matplotlibrc && \
47
+ python -c "from matplotlib import font_manager"
48
+
45
49
# Re-install nipype
46
50
COPY . /root/src/nipype
47
51
RUN rm -r /usr/local/miniconda/lib/python2.7/site-packages/nipype* && \
You can’t perform that action at this time.
0 commit comments