Skip to content

Commit fea3aa0

Browse files
committed
create tags for python versions
1 parent 7b6494d commit fea3aa0

File tree

3 files changed

+35
-54
lines changed

3 files changed

+35
-54
lines changed

docker/nipype_test_base/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ RUN sed -i -e 's,main$,main contrib non-free,g' /etc/apt/sources.list.d/neurodeb
4343
apt-utils \
4444
fusefat \
4545
graphviz \
46+
make \
4647
fsl-core && \
4748
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
4849
echo ". /etc/fsl/fsl.sh" >> /etc/bash.bashrc

docker/nipype_test_py34/Dockerfile

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2016, The developers of the Stanford CRN
1+
# Copyright (c) 2016, The developers of nipype
22
# All rights reserved.
33
#
44
# Redistribution and use in source and binary forms, with or without
@@ -26,19 +26,16 @@
2626
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828

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
3231
# Preparations
3332
RUN ln -snf /bin/bash /bin/sh
3433
WORKDIR /root
3534

3635
# 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
4239

4340
ENV PATH /usr/local/miniconda/bin:$PATH
4441

@@ -47,27 +44,21 @@ ENV PATH /usr/local/miniconda/bin:$PATH
4744
ENV LANG C.UTF-8
4845

4946
# 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
5151

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
5754

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 .
6058

61-
# Create conda environment
62-
RUN conda create -y -n nipypetests-3.5 lockfile nipype python=3.5
6359

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
7163

72-
RUN echo "source /etc/profile.d/nipype.sh" >> /etc/bash.bashrc
7364
CMD ["/bin/bash"]

docker/nipype_test_py35/Dockerfile

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2016, The developers of the Stanford CRN
1+
# Copyright (c) 2016, The developers of nipype
22
# All rights reserved.
33
#
44
# Redistribution and use in source and binary forms, with or without
@@ -26,19 +26,16 @@
2626
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828

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
3231
# Preparations
3332
RUN ln -snf /bin/bash /bin/sh
3433
WORKDIR /root
3534

3635
# 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
4239

4340
ENV PATH /usr/local/miniconda/bin:$PATH
4441

@@ -47,27 +44,19 @@ ENV PATH /usr/local/miniconda/bin:$PATH
4744
ENV LANG C.UTF-8
4845

4946
# Add conda-forge channel in conda
50-
RUN conda config --add channels conda-forge
47+
RUN conda config --add channels conda-forge && \
48+
conda install -y lockfile nipype
5149

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
50+
RUN mkdir -p /root/src/nipype
51+
COPY . /root/src/nipype
5752

58-
# Create conda environment
59-
RUN conda create -y -n nipypetests-3.4 lockfile nipype python=3.4
53+
RUN cd /root/src/nipype && \
54+
pip install -r requirements.txt && \
55+
pip install -e .
6056

61-
# Create conda environment
62-
RUN conda create -y -n nipypetests-3.5 lockfile nipype python=3.5
6357

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
58+
COPY docker/circleci/run_* /usr/bin/
59+
RUN chmod +x /usr/bin/run_*
60+
ENV SHELL /bin/bash
7161

72-
RUN echo "source /etc/profile.d/nipype.sh" >> /etc/bash.bashrc
7362
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)