@@ -32,38 +32,50 @@ MAINTAINER Stanford Center for Reproducible Neuroscience <crn.poldracklab@gmail.
3232# Preparations
3333RUN ln -snf /bin/bash /bin/sh
3434WORKDIR /root
35+
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+
3542RUN mkdir -p .nipype && \
3643 echo '[logging]' > .nipype/nipype.cfg && \
3744 echo 'workflow_level = DEBUG' >> .nipype/nipype.cfg && \
3845 echo 'interface_level = DEBUG' >> .nipype/nipype.cfg && \
3946 echo 'filemanip_level = DEBUG' >> .nipype/nipype.cfg
4047
41- ADD docker/circleci/run_* /usr/bin/
42- RUN chmod +x /usr/bin/run_*
43-
4448# Install this branch's code
45- WORKDIR /scratch /src
49+ WORKDIR /root /src
4650ADD . nipype/
4751
4852# Install the checked out version of nipype, check that requirements are
4953# installed and install it for each of the three environments.
54+ # Additionally, install matplotlib and sphinx to build documentation
5055RUN cd nipype/ && \
5156 source activate nipypetests-2.7 && \
57+ pip install matplotlib sphinx coverage && \
5258 pip install -r requirements.txt && \
5359 pip install -e .
5460
5561RUN cd nipype/ && \
5662 source activate nipypetests-3.4 && \
63+ pip install matplotlib sphinx coverage && \
5764 pip install -r requirements.txt && \
5865 pip install -e .
5966
6067RUN cd nipype/ && \
6168 source activate nipypetests-3.5 && \
69+ pip install matplotlib sphinx coverage && \
6270 pip install -r requirements.txt && \
6371 pip install -e .
6472
6573WORKDIR /scratch
6674
75+ # Install entrypoints
76+ ADD docker/circleci/run_* /usr/bin/
77+ RUN chmod +x /usr/bin/run_*
78+
6779# RUN echo 'source /etc/profile.d/nipype_tests.sh' >> /etc/bash.bashrc
6880ENTRYPOINT ["/usr/bin/run_examples.sh" ]
6981CMD ["--help" ]
0 commit comments