|
1 | | -FROM jupyter/base-notebook:eb70bcf1a292 |
2 | | -USER root |
| 1 | +FROM metacell/jupyter-neuron:latest |
| 2 | +USER $NB_USER |
3 | 3 |
|
4 | 4 | ARG netpyneuiBranch=development |
5 | 5 | ENV netpyneuiBranch=${netpyneuiBranch} |
6 | 6 | RUN echo "$netpyneuiBranch"; |
7 | 7 |
|
8 | | -RUN apt-get -qq update |
9 | | -RUN apt-get install -y \ |
10 | | - locales \ |
11 | | - wget \ |
12 | | - gcc \ |
13 | | - g++ \ |
14 | | - build-essential \ |
15 | | - libncurses-dev \ |
16 | | - libpython-dev \ |
17 | | - cython \ |
18 | | - libx11-dev \ |
19 | | - git \ |
20 | | - bison \ |
21 | | - flex \ |
22 | | - automake \ |
23 | | - libtool \ |
24 | | - libxext-dev \ |
25 | | - libncurses-dev \ |
26 | | - xfonts-100dpi \ |
27 | | - libopenmpi-dev \ |
28 | | - make \ |
29 | | - zlib1g-dev \ |
30 | | - unzip \ |
31 | | - vim \ |
32 | | - libpng-dev |
33 | | - |
34 | | -# Switch to non sudo, create a Python 3 virtual environment |
35 | | -USER $NB_USER |
36 | | -RUN conda create --name snakes python=3.7 |
37 | | - |
38 | | -# Install latest iv and NEURON |
39 | | -RUN git clone --branch 7.6.2 https://github.com/neuronsimulator/nrn |
40 | | -WORKDIR nrn |
41 | | -RUN ./build.sh |
42 | | -# Activate conda to configure nrn with the right python version |
43 | | -RUN /bin/bash -c "source activate snakes && ./configure --without-x --with-nrnpython=python3 --without-paranrn --prefix='/home/jovyan/work/nrn/' --without-iv" |
44 | | -RUN make --silent -j4 |
45 | | -RUN make --silent install -j4 |
46 | | - |
47 | | - |
48 | | -# Install NEURON python |
49 | | -WORKDIR src/nrnpython |
50 | | -ENV PATH="/home/jovyan/work/nrn/x86_64/bin:${PATH}" |
51 | | -RUN /bin/bash -c "source activate snakes && python setup.py install" |
52 | | - |
53 | 8 | # Clone NetPyNE-UI and install the development version |
54 | | -WORKDIR ../../../ |
55 | | -RUN wget https://github.com/MetaCell/NetPyNE-UI/archive/$netpyneuiBranch.zip |
| 9 | +RUN wget https://github.com/MetaCell/NetPyNE-UI/archive/$netpyneuiBranch.zip -q |
56 | 10 | RUN unzip $netpyneuiBranch.zip |
57 | | -WORKDIR NetPyNE-UI-$netpyneuiBranch/utilities |
| 11 | +WORKDIR /home/jovyan/work/NetPyNE-UI-$netpyneuiBranch/utilities |
58 | 12 | RUN /bin/bash -c "source activate snakes && python --version" |
59 | 13 | RUN /bin/bash -c "source activate snakes && exec python install.py branch $netpyneuiBranch" |
60 | 14 | WORKDIR /home/jovyan |
61 | 15 | RUN git clone https://github.com/Neurosim-lab/netpyne_workspace |
62 | 16 | WORKDIR /home/jovyan/netpyne_workspace |
63 | | -CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token=''" |
| 17 | +RUN ln -sfn /home/jovyan/work/NetPyNE-UI-$netpyneuiBranch/netpyne_ui/tests tests |
| 18 | +CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui" |
0 commit comments