File tree Expand file tree Collapse file tree 3 files changed +30
-21
lines changed Expand file tree Collapse file tree 3 files changed +30
-21
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,15 @@ RUN conda config --add channels conda-forge && \
52
52
COPY docker/circleci/run_* /usr/bin/
53
53
RUN chmod +x /usr/bin/run_*
54
54
55
+ # Speed up building
55
56
RUN mkdir -p /root/src/nipype
56
- COPY . /root/src/nipype
57
+ COPY requirements.txt /root/src/nipype/requirements.txt
58
+ RUN pip install -r /root/src/nipype/requirements.txt
57
59
60
+ # Re-install nipype
61
+ COPY . /root/src/nipype
58
62
RUN rm -r /usr/local/miniconda/lib/python2.7/site-packages/nipype* && \
59
63
cd /root/src/nipype && \
60
- pip install -r requirements.txt && \
61
64
pip install -e .
62
65
63
- # Replace imglob with Python3 compatible version
64
- RUN rm -r ${FSLDIR}/bin/imglob && \
65
- ln -s $(which fsl_imglob.py) ${FSLDIR}/bin/imglob
66
-
67
66
CMD ["/bin/bash"]
Original file line number Diff line number Diff line change @@ -54,16 +54,21 @@ RUN conda config --add channels conda-forge && \
54
54
COPY docker/circleci/run_* /usr/bin/
55
55
RUN chmod +x /usr/bin/run_*
56
56
57
+ # Replace imglob with Python3 compatible version
58
+ COPY nipype/external/fsl_imglob.py /usr/bin/fsl_imglob.py
59
+ RUN rm -r ${FSLDIR}/bin/imglob && \
60
+ chmod +x /usr/bin/fsl_imglob.py && \
61
+ ln -s /usr/bin/fsl_imglob.py ${FSLDIR}/bin/imglob
62
+
63
+ # Speed up building
57
64
RUN mkdir -p /root/src/nipype
58
- COPY . /root/src/nipype
65
+ COPY requirements.txt /root/src/nipype/requirements.txt
66
+ RUN pip install -r /root/src/nipype/requirements.txt
59
67
60
- RUN rm -r /usr/local/miniconda/lib/python3.5/site-packages/nipype* && \
68
+ # Re-install nipype
69
+ COPY . /root/src/nipype
70
+ RUN rm -r /usr/local/miniconda/lib/python3.4/site-packages/nipype* && \
61
71
cd /root/src/nipype && \
62
- pip install -r requirements.txt && \
63
- pip install -e .
64
-
65
- # Replace imglob with Python3 compatible version
66
- RUN rm -r ${FSLDIR}/bin/imglob && \
67
- ln -s $(which fsl_imglob.py) ${FSLDIR}/bin/imglob
72
+ pip install -e .
68
73
69
74
CMD ["/bin/bash"]
Original file line number Diff line number Diff line change @@ -52,16 +52,21 @@ RUN conda config --add channels conda-forge && \
52
52
COPY docker/circleci/run_* /usr/bin/
53
53
RUN chmod +x /usr/bin/run_*
54
54
55
+ # Replace imglob with Python3 compatible version
56
+ COPY nipype/external/fsl_imglob.py /usr/bin/fsl_imglob.py
57
+ RUN rm -r ${FSLDIR}/bin/imglob && \
58
+ chmod +x /usr/bin/fsl_imglob.py && \
59
+ ln -s /usr/bin/fsl_imglob.py ${FSLDIR}/bin/imglob
60
+
61
+ # Speed up building
55
62
RUN mkdir -p /root/src/nipype
56
- COPY . /root/src/nipype
63
+ COPY requirements.txt /root/src/nipype/requirements.txt
64
+ RUN pip install -r /root/src/nipype/requirements.txt
57
65
66
+ # Re-install nipype
67
+ COPY . /root/src/nipype
58
68
RUN rm -r /usr/local/miniconda/lib/python3.5/site-packages/nipype* && \
59
69
cd /root/src/nipype && \
60
- pip install -r requirements.txt && \
61
- pip install -e .
62
-
63
- # Replace imglob with Python3 compatible version
64
- RUN rm -r ${FSLDIR}/bin/imglob && \
65
- ln -s $(which fsl_imglob.py) ${FSLDIR}/bin/imglob
70
+ pip install -e .
66
71
67
72
CMD ["/bin/bash"]
You can’t perform that action at this time.
0 commit comments