1
- # Copyright (c) 2016, The developers of the Stanford CRN
1
+ # Copyright (c) 2016, The developers of nipype
2
2
# All rights reserved.
3
3
#
4
4
# Redistribution and use in source and binary forms, with or without
26
26
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
27
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
28
29
- FROM nipype/testbase:latest
30
- MAINTAINER Stanford Center for Reproducible Neuroscience <
[email protected] >
31
-
29
+ FROM nipype/nipype_test:base
30
+ MAINTAINER The nipype developers https://github.com/nipy/nipype
32
31
# Preparations
33
32
RUN ln -snf /bin/bash /bin/sh
34
33
WORKDIR /root
35
34
36
35
# Install miniconda
37
- RUN curl -sSLO https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh && \
38
- /bin/bash Miniconda-latest-Linux-x86_64.sh -b -p /usr/local/miniconda && \
39
- rm Miniconda-latest-Linux-x86_64.sh && \
40
- echo '#!/bin/bash' >> /etc/profile.d/nipype.sh && \
41
- echo 'export PATH=/usr/local/miniconda/bin:$PATH' >> /etc/profile.d/nipype.sh
36
+ RUN curl -sSLO https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
37
+ /bin/bash Miniconda3-latest-Linux-x86_64.sh -b -p /usr/local/miniconda && \
38
+ rm Miniconda3-latest-Linux-x86_64.sh
42
39
43
40
ENV PATH /usr/local/miniconda/bin:$PATH
44
41
@@ -47,27 +44,21 @@ ENV PATH /usr/local/miniconda/bin:$PATH
47
44
ENV LANG C.UTF-8
48
45
49
46
# Add conda-forge channel in conda
50
- RUN conda config --add channels conda-forge
47
+ RUN conda config --add channels conda-forge && \
48
+ conda update -y conda && \
49
+ conda update --all -y python=3.4 && \
50
+ conda install -y lockfile nipype
51
51
52
- # Create conda environment
53
- RUN conda create -y -n nipypetests-2.7 lockfile nipype && \
54
- echo '#!/bin/bash' >> /etc/profile.d/nipype.sh && \
55
- echo '#!/bin/bash' >> /etc/bashrc && \
56
- echo 'source activate nipypetests-2.7' >> /etc/profile.d/nipype.sh
52
+ RUN mkdir -p /root/src/nipype
53
+ COPY . /root/src/nipype
57
54
58
- # Create conda environment
59
- RUN conda create -y -n nipypetests-3.4 lockfile nipype python=3.4
55
+ RUN cd /root/src/nipype && \
56
+ pip install -r requirements.txt && \
57
+ pip install -e .
60
58
61
- # Create conda environment
62
- RUN conda create -y -n nipypetests-3.5 lockfile nipype python=3.5
63
59
64
- # Install dipy
65
- RUN source activate nipypetests-2.7 && \
66
- pip install dipy && \
67
- source activate nipypetests-3.4 && \
68
- pip install dipy && \
69
- source activate nipypetests-3.5 && \
70
- pip install dipy
60
+ COPY docker/circleci/run_* /usr/bin/
61
+ RUN chmod +x /usr/bin/run_*
62
+ ENV SHELL /bin/bash
71
63
72
- RUN echo "source /etc/profile.d/nipype.sh" >> /etc/bash.bashrc
73
64
CMD ["/bin/bash" ]
0 commit comments