Skip to content

Commit 75607da

Browse files
authored
Merge pull request #51 from MetaCell/fix/nrndocker
Fix/nrndocker
2 parents 0277c27 + 773dc78 commit 75607da

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ RUN apt-get install -y \
3333

3434
# Install latest iv and NEURON
3535
RUN git clone http://github.com/neuronsimulator/iv
36-
RUN git clone http://github.com/neuronsimulator/nrn
36+
RUN git clone --branch 7.6.1crxd https://github.com/adamjhn/nrn.git
3737
WORKDIR iv
3838
RUN ./build.sh
39-
RUN ./configure
39+
RUN ./configure --prefix="/home/jovyan/work/iv/"
4040
RUN make --silent -j4
4141
RUN make --silent install -j4
4242
WORKDIR ../nrn
4343
RUN ./build.sh
44-
RUN ./configure --with-nrnpython=python2 --with-paranrn
44+
RUN ./configure --with-nrnpython=python2 --with-paranrn --prefix="/home/jovyan/work/nrn/" --with-iv="/home/jovyan/work/iv/"
4545
RUN make --silent -j4
4646
RUN make --silent install -j4
4747

@@ -54,13 +54,16 @@ RUN conda create --name snakes python=2
5454
WORKDIR src/nrnpython
5555
ENV PATH="/home/jovyan/work/nrn/x86_64/bin:${PATH}"
5656
RUN /bin/bash -c "source activate snakes && python setup.py install"
57+
# Install Bokeh
58+
RUN /bin/bash -c "source activate snakes && conda install bokeh=0.12.7"
5759

5860
ARG INCUBATOR_VER=unknown
5961
RUN /bin/bash -c "INCUBATOR_VER=${INCUBATOR_VER} source activate snakes && pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple netpyne_ui"
6062
RUN /bin/bash -c "source activate snakes && jupyter nbextension enable --py jupyter_geppetto"
6163
RUN /bin/bash -c "source activate snakes && jupyter serverextension enable --py jupyter_geppetto"
6264
RUN /bin/bash -c "source activate snakes && jupyter nbextension enable --py widgetsnbextension"
6365

64-
RUN mkdir /home/jovyan/netpyne_workspace
66+
WORKDIR /home/jovyan
67+
RUN git clone https://github.com/Neurosim-lab/netpyne_workspace
6568
WORKDIR /home/jovyan/netpyne_workspace
6669
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token=''"

Dockerfile_dev

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM jupyter/base-notebook:eb70bcf1a292
22
USER root
33

4-
ARG netpyneuiBranch=0.2M3
5-
ENV netpyneuiBranch=${netpyneuiBranch}
4+
ARG netpyneuiBranch=development
5+
ENV netpyneuiBranch=${netpyneuiBranch}
66
RUN echo "$netpyneuiBranch";
77

88
RUN apt-get -qq update
@@ -37,15 +37,15 @@ RUN apt-get install -y \
3737

3838
# Install latest iv and NEURON
3939
RUN git clone http://github.com/neuronsimulator/iv
40-
RUN git clone http://github.com/neuronsimulator/nrn
40+
RUN git clone --branch 7.6.1crxd https://github.com/adamjhn/nrn.git
4141
WORKDIR iv
4242
RUN ./build.sh
43-
RUN ./configure
43+
RUN ./configure --prefix="/home/jovyan/work/iv/"
4444
RUN make --silent -j4
4545
RUN make --silent install -j4
4646
WORKDIR ../nrn
4747
RUN ./build.sh
48-
RUN ./configure --with-nrnpython=python2 --with-paranrn
48+
RUN ./configure --with-nrnpython=python2 --with-paranrn --prefix="/home/jovyan/work/nrn/" --with-iv="/home/jovyan/work/iv/"
4949
RUN make --silent -j4
5050
RUN make --silent install -j4
5151

@@ -58,6 +58,8 @@ RUN conda create --name snakes python=2
5858
WORKDIR src/nrnpython
5959
ENV PATH="/home/jovyan/work/nrn/x86_64/bin:${PATH}"
6060
RUN /bin/bash -c "source activate snakes && python setup.py install"
61+
# Install Bokeh
62+
RUN /bin/bash -c "source activate snakes && conda install bokeh=0.12.7"
6163

6264
# Clone NetPyNE-UI and install the development version
6365
WORKDIR ../../../
@@ -66,6 +68,7 @@ RUN unzip $netpyneuiBranch.zip
6668
WORKDIR NetPyNE-UI-$netpyneuiBranch/utilities
6769
RUN /bin/bash -c "source activate snakes && python --version"
6870
RUN /bin/bash -c "source activate snakes && exec python install.py"
69-
RUN mkdir /home/jovyan/netpyne_workspace
71+
WORKDIR /home/jovyan
72+
RUN git clone https://github.com/Neurosim-lab/netpyne_workspace
7073
WORKDIR /home/jovyan/netpyne_workspace
7174
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token=''"

0 commit comments

Comments
 (0)