1- FROM jupyter/base-notebook:eb70bcf1a292
2- USER root
3-
4- RUN apt-get -qq update
5- RUN apt-get install -y \
6- locales \
7- wget \
8- gcc \
9- g++ \
10- build-essential \
11- libncurses-dev \
12- python2.7 \
13- libpython-dev \
14- cython \
15- libx11-dev \
16- git \
17- bison \
18- flex \
19- automake \
20- libtool \
21- libxext-dev \
22- libncurses-dev \
23- python2.7-dev \
24- xfonts-100dpi \
25- libopenmpi-dev \
26- python2.7-scipy \
27- make \
28- zlib1g-dev \
29- unzip \
30- vim \
31- libpng-dev
32-
33- # Install latest NEURON
34- RUN git clone --branch 7.6.1crxd https://github.com/adamjhn/nrn.git
35- WORKDIR nrn
36- RUN ./build.sh
37- RUN ./configure --without-x --with-nrnpython=python2 --without-paranrn --prefix="/home/jovyan/work/nrn/" --without-iv
38- RUN make --silent -j4
39- RUN make --silent install -j4
40-
41- # Switch to non sudo, create a Python 2 virtual environment
1+ FROM metacell/jupyter-neuron:latest
422USER $NB_USER
43- # Commenting out the conda update things broke!
44- # RUN conda update conda
45- RUN conda create --name snakes python=2
463
47- # Install NEURON python
48- WORKDIR src/nrnpython
49- ENV PATH="/home/jovyan/work/nrn/x86_64/bin:${PATH}"
50- RUN /bin/bash -c "source activate snakes && python setup.py install"
51- # Install Bokeh
52- RUN /bin/bash -c "source activate snakes && conda install bokeh=0.12.7"
4+ ARG netpyneuiBranch=development
5+ ENV netpyneuiBranch=${netpyneuiBranch}
6+ RUN echo "$netpyneuiBranch" ;
537
548ARG INCUBATOR_VER=unknown
559RUN /bin/bash -c "INCUBATOR_VER=${INCUBATOR_VER} source activate snakes && pip install netpyne_ui"
@@ -60,4 +14,13 @@ RUN /bin/bash -c "source activate snakes && jupyter nbextension enable --py widg
6014WORKDIR /home/jovyan
6115RUN git clone --branch CNS18 https://github.com/Neurosim-lab/netpyne_workspace
6216WORKDIR /home/jovyan/netpyne_workspace
63- CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token=''"
17+
18+ # Uncomment to run travis using this Dockerfile
19+ # Clone the source code and creates a symlink to the test folder
20+ WORKDIR /home/jovyan/work
21+ RUN wget https://github.com/MetaCell/NetPyNE-UI/archive/$netpyneuiBranch.zip -q
22+ RUN unzip $netpyneuiBranch.zip
23+ WORKDIR /home/jovyan/netpyne_workspace
24+ RUN ln -sfn /home/jovyan/work/NetPyNE-UI-$netpyneuiBranch/netpyne_ui/tests tests
25+
26+ CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui"
0 commit comments