@@ -109,16 +109,17 @@ Testing Nipype using Docker
109
109
110
110
As of :code: `nipype-0.13 `, Nipype is tested inside Docker containers. First, install the
111
111
`Docker Engine <https://docs.docker.com/engine/installation/ >`_.
112
- Nipype has one base docker image called nipype/nipype , and several additional test images
112
+ Nipype has one base docker image called nipype/base:latest , and several additional test images
113
113
for various Python versions.
114
114
115
- The base nipype/nipype image is built as follows::
115
+ The base nipype image is built as follows::
116
116
117
117
cd path/to/nipype/
118
- docker build -t nipype/nipype .
118
+ docker build -t nipype/base:latest -f docker/base.Dockerfile .
119
+
120
+ This base image contains several useful tools (FreeSurfer, AFNI, FSL, ANTs, etc.),
121
+ but not nipype.
119
122
120
- This base image contains several useful tools (FreeSurfer, AFNI, FSL, ANTs, etc.) and
121
- a nipype installation, all in Python 3.5.
122
123
It is possible to fetch a built image from the latest master branch of nipype
123
124
using::
124
125
@@ -128,26 +129,15 @@ using::
128
129
The docker run command will then open the container and offer a bash shell for the
129
130
developer.
130
131
131
- The additional test images have several test scripts installed. For instance,
132
- to build and run all tests on Python 2.7::
133
-
134
- cd path/to/nipype/
135
- docker build -f docker/Dockerfile_py27 -t nipype/nipype_test:py27 .
136
- docker run -it --rm -e FSL_COURSE_DATA="/root/examples/nipype-fsl_course_data" \
137
- -v ~/examples:/root/examples:ro \
138
- -v ~/scratch:/scratch \
139
- -w /root/src/nipype \
140
- nipype/nipype_test:py27 /usr/bin/run_pytests.sh
141
-
142
- For running nipype in Python 3.5::
132
+ For building a continer for running nipype in Python 3.6::
143
133
144
134
cd path/to/nipype/
145
- docker build -f docker/Dockerfile_py35 -t nipype/nipype_test:py35 .
135
+ docker build -f Dockerfile -t nipype/nipype_test:py36 .
146
136
docker run -it --rm -e FSL_COURSE_DATA="/root/examples/nipype-fsl_course_data" \
147
137
-v ~/examples:/root/examples:ro \
148
138
-v ~/scratch:/scratch \
149
139
-w /root/src/nipype \
150
- nipype/nipype_test:py35 /usr/bin/run_pytests.sh
140
+ nipype/nipype_test:py36 /usr/bin/run_pytests.sh
151
141
152
- The last two examples assume that the example data is downladed into ~/examples and
142
+ The last examples assume that the example data is downladed into ~/examples and
153
143
the ~/scratch folder will be created if it does not exist previously.
0 commit comments