Skip to content

Commit cbecf20

Browse files
committed
add graphviz to base, fix several problems #1538
1 parent b419995 commit cbecf20

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

Dockerfile

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ MAINTAINER Stanford Center for Reproducible Neuroscience <crn.poldracklab@gmail.
3333
RUN ln -snf /bin/bash /bin/sh
3434
WORKDIR /root
3535

36-
# Install graphviz to provide dot
37-
ARG DEBIAN_FRONTEND=noninteractive
38-
RUN apt-get update && \
39-
apt-get install -y graphviz && \
40-
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
41-
4236
RUN mkdir -p .nipype && \
4337
echo '[logging]' > .nipype/nipype.cfg && \
4438
echo 'workflow_level = DEBUG' >> .nipype/nipype.cfg && \
@@ -47,26 +41,32 @@ RUN mkdir -p .nipype && \
4741

4842
# Install this branch's code
4943
WORKDIR /root/src
44+
45+
# Install matplotlib, sphinx and coverage to build documentation
46+
# and run tests with coverage
47+
RUN source activate nipypetests-2.7 && \
48+
pip install matplotlib sphinx coverage && \
49+
source activate nipypetests-3.4 && \
50+
pip install matplotlib sphinx coverage && \
51+
source activate nipypetests-3.5 && \
52+
pip install matplotlib sphinx coverage
53+
5054
ADD . nipype/
5155

5256
# Install the checked out version of nipype, check that requirements are
5357
# installed and install it for each of the three environments.
54-
# Additionally, install matplotlib and sphinx to build documentation
5558
RUN cd nipype/ && \
5659
source activate nipypetests-2.7 && \
57-
pip install matplotlib sphinx coverage && \
5860
pip install -r requirements.txt && \
5961
pip install -e .
6062

6163
RUN cd nipype/ && \
6264
source activate nipypetests-3.4 && \
63-
pip install matplotlib sphinx coverage && \
6465
pip install -r requirements.txt && \
6566
pip install -e .
6667

6768
RUN cd nipype/ && \
6869
source activate nipypetests-3.5 && \
69-
pip install matplotlib sphinx coverage && \
7070
pip install -r requirements.txt && \
7171
pip install -e .
7272

@@ -78,5 +78,4 @@ RUN chmod +x /usr/bin/run_*
7878

7979
# RUN echo 'source /etc/profile.d/nipype_tests.sh' >> /etc/bash.bashrc
8080
ENTRYPOINT ["/usr/bin/run_examples.sh"]
81-
CMD ["--help"]
8281

circle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ test:
2727
timeout: 1600
2828
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch nipype/testbench fmri_fsl_reuse Linear level1_workflow
2929
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch nipype/testbench fmri_spm_nested Linear level1 l2pipeline
30-
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch --entrypoint="/usr/bin/run_nosetests.sh" nipype/testbench --xunit-file="/scratch/nose/${CIRCLE_PROJECT_REPONAME}.xml" :
30+
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch --entrypoint="/usr/bin/run_nosetests.sh" nipype/testbench :
3131
timeout: 2600
3232
post:
3333
- mkdir -p ${CIRCLE_TEST_REPORTS}/nose
34-
- mv ~/scratch/nose/${CIRCLE_PROJECT_REPONAME}.xml ${CIRCLE_TEST_REPORTS}/nose/
34+
- mv ~/scratch/nosetests.xml ${CIRCLE_TEST_REPORTS}/nose/${CIRCLE_PROJECT_REPONAME}.xml
3535
- mkdir -p ~/docs
3636
- mv ~/scratch/docs/* ~/docs/
3737
- mv ~/scratch/builddocs.log ~/docs/log.txt

docker/circleci/run_nosetests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ done
55
source activate nipypetests-2.7
66
cd /root/src/nipype
77
mkdir -p /scratch/nose
8-
nosetests --with-doctest -c /root/src/nipype/.noserc --logging-level=DEBUG --verbosity=3 $@
8+
nosetests --with-doctest -c /root/src/nipype/.noserc --logging-level=DEBUG --verbosity=3 --xunit-file="/scratch/nosetests.xml"

docker/test-image-base/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ RUN apt-get update && \
5757
libqhull-dev \
5858
libxft-dev \
5959
libjpeg-dev \
60-
libyaml-dev
60+
libyaml-dev \
61+
graphviz
6162

6263

6364
# Install ANTs

0 commit comments

Comments
 (0)