Skip to content

Commit 028c3c9

Browse files
author
Facu
authored
Merge branch 'development' into plotinclude
2 parents f3bce4f + 7ae4aaf commit 028c3c9

11 files changed

Lines changed: 331 additions & 385 deletions

File tree

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "netpyne_ui/geppetto"]
2+
path = netpyne_ui/geppetto
3+
url = https://github.com/openworm/org.geppetto.frontend.git

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ node_js:
88
env:
99
global:
1010
secure: dn0FPQ5IG4M/3kdwnyI78ElQ308Vc3QnKAvkWfwMFb8QxDqxQdnTo7AV1qTMtbLrDNkeEWIgi4nc7jmXNtvGTwOfhAULVh6606Qs5B+ezTdwzajbbFMI8SKQx/pnTojOMu8dx7V4lMoR/YWcojR0VC1IWVC62TGbSB1k5BDGgH0=
11+
before_install:
12+
- sudo apt-get install -y xserver-xorg-dev libxext-dev libxi-dev
1113
install:
1214
- git clone --quiet https://github.com/MetaCell/geppetto-netpyne.git
1315
- cd geppetto-netpyne
1416
- if [ `git branch -a | egrep "remotes/origin/${TRAVIS_BRANCH}"` ]; then git checkout $TRAVIS_BRANCH ; else echo "Branch $TRAVIS_BRANCH does not exist for the dependent bundle, checking out development ..." && git checkout development; fi
1517
- cd ..
16-
- npm install --silent -g phantomjs
17-
- npm install --silent -g casperjs
18+
- npm install --silent -g phantomjs
19+
- npm install --silent -g casperjs
1820
- npm install --silent -g slimerjs
1921
- npm install --silent -g gl
2022
python:
@@ -34,6 +36,7 @@ addons:
3436
- libgl1-mesa-dri
3537
- libglapi-mesa
3638
- libosmesa6
39+
3740
before_script:
3841
- "export DISPLAY=:99.0"
3942
- "sh -e /etc/init.d/xvfb start"

Dockerfile

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,6 @@
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-
libpython-dev \
13-
cython \
14-
libx11-dev \
15-
git \
16-
bison \
17-
flex \
18-
automake \
19-
libtool \
20-
libxext-dev \
21-
libncurses-dev \
22-
xfonts-100dpi \
23-
libopenmpi-dev \
24-
make \
25-
zlib1g-dev \
26-
unzip \
27-
vim \
28-
libpng-dev
29-
1+
FROM metacell/jupyter-neuron:latest
302
# Switch to non sudo, create a Python 3 virtual environment
313
USER $NB_USER
32-
RUN conda create --name snakes python=3.7
33-
34-
# Install latest iv and NEURON
35-
RUN git clone --branch 7.6.2 https://github.com/neuronsimulator/nrn
36-
WORKDIR nrn
37-
RUN ./build.sh
38-
# Activate conda to configure nrn with the right python version
39-
RUN /bin/bash -c "source activate snakes && ./configure --without-x --with-nrnpython=python3 --without-paranrn --prefix='/home/jovyan/work/nrn/' --without-iv"
40-
RUN make --silent -j4
41-
RUN make --silent install -j4
42-
43-
# Install NEURON python
44-
WORKDIR src/nrnpython
45-
ENV PATH="/home/jovyan/work/nrn/x86_64/bin:${PATH}"
46-
RUN /bin/bash -c "source activate snakes && python setup.py install"
474

485
ARG INCUBATOR_VER=unknown
496
RUN /bin/bash -c "INCUBATOR_VER=${INCUBATOR_VER} source activate snakes && pip install netpyne_ui"

Dockerfile_dev

Lines changed: 6 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,18 @@
1-
FROM jupyter/base-notebook:eb70bcf1a292
2-
USER root
1+
FROM metacell/jupyter-neuron:latest
2+
USER $NB_USER
33

44
ARG netpyneuiBranch=development
55
ENV netpyneuiBranch=${netpyneuiBranch}
66
RUN echo "$netpyneuiBranch";
77

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-
538
# 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
5610
RUN unzip $netpyneuiBranch.zip
57-
WORKDIR NetPyNE-UI-$netpyneuiBranch/utilities
11+
WORKDIR /home/jovyan/work/NetPyNE-UI-$netpyneuiBranch/utilities
5812
RUN /bin/bash -c "source activate snakes && python --version"
5913
RUN /bin/bash -c "source activate snakes && exec python install.py branch $netpyneuiBranch"
6014
WORKDIR /home/jovyan
6115
RUN git clone https://github.com/Neurosim-lab/netpyne_workspace
6216
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"

NetPyNE-UI

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
exec jupyter notebook --NotebookApp.default_url=/geppetto --NotebookApp.token=''
2+
exec jupyter notebook --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui

netpyne_ui/geppetto

Submodule geppetto added at 0077835

0 commit comments

Comments
 (0)