Skip to content

Commit bf290b1

Browse files
authored
Merge pull request #97 from MetaCell/development
Release 0.5
2 parents a068be9 + 294c496 commit bf290b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2654
-1675
lines changed

.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: 7 additions & 3 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"
@@ -67,6 +70,7 @@ script:
6770
- "curl -s -I $1 http://localhost:8888/geppetto | grep HTTP/1.1 | awk {'print $2'}"
6871
- firefox --version
6972
- travis_retry xvfb-run -a --server-args="-screen 0 1024x768x24" casperjs test netpyne-tests.js --host=http://localhost:8888/ --engine=slimerjs
70-
- sudo docker logs -t netpyne-ui_container
73+
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
74+
- docker logs -t netpyne-ui_container
7175
- docker stop $(docker ps -a -q)
7276
- docker rm $(docker ps -a -q)

Dockerfile

Lines changed: 14 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,9 @@
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
422
USER $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

548
ARG INCUBATOR_VER=unknown
559
RUN /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
6014
WORKDIR /home/jovyan
6115
RUN git clone --branch CNS18 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+
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"

Dockerfile_dev

Lines changed: 6 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +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-
python2.7 \
17-
libpython-dev \
18-
cython \
19-
libx11-dev \
20-
git \
21-
bison \
22-
flex \
23-
automake \
24-
libtool \
25-
libxext-dev \
26-
libncurses-dev \
27-
python2.7-dev \
28-
xfonts-100dpi \
29-
libopenmpi-dev \
30-
python2.7-scipy \
31-
make \
32-
zlib1g-dev \
33-
unzip \
34-
vim \
35-
libpng-dev
36-
37-
# Install latest iv and NEURON
38-
RUN git clone --branch 7.6.1crxd https://github.com/adamjhn/nrn.git
39-
WORKDIR nrn
40-
RUN ./build.sh
41-
RUN ./configure --without-x --with-nrnpython=python2 --without-paranrn --prefix="/home/jovyan/work/nrn/" --without-iv
42-
RUN make --silent -j4
43-
RUN make --silent install -j4
44-
45-
# Switch to non sudo, create a Python 2 virtual environment
46-
USER $NB_USER
47-
# Commenting out the conda update things broke!
48-
# RUN conda update conda
49-
RUN conda create --name snakes python=2
50-
51-
# Install NEURON python
52-
WORKDIR src/nrnpython
53-
ENV PATH="/home/jovyan/work/nrn/x86_64/bin:${PATH}"
54-
RUN /bin/bash -c "source activate snakes && python setup.py install"
55-
# Install Bokeh
56-
RUN /bin/bash -c "source activate snakes && conda install bokeh=0.12.7"
57-
588
# Clone NetPyNE-UI and install the development version
59-
WORKDIR ../../../
60-
RUN wget https://github.com/MetaCell/NetPyNE-UI/archive/$netpyneuiBranch.zip
9+
RUN wget https://github.com/MetaCell/NetPyNE-UI/archive/$netpyneuiBranch.zip -q
6110
RUN unzip $netpyneuiBranch.zip
62-
WORKDIR NetPyNE-UI-$netpyneuiBranch/utilities
11+
WORKDIR /home/jovyan/work/NetPyNE-UI-$netpyneuiBranch/utilities
6312
RUN /bin/bash -c "source activate snakes && python --version"
6413
RUN /bin/bash -c "source activate snakes && exec python install.py branch $netpyneuiBranch"
6514
WORKDIR /home/jovyan
6615
RUN git clone https://github.com/Neurosim-lab/netpyne_workspace
6716
WORKDIR /home/jovyan/netpyne_workspace
68-
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"

MANIFEST.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Include everything inside this folder
2+
graft netpyne_ui/geppetto/src/main/webapp/build
3+
4+
# Include any of these resources at any level
5+
recursive-include netpyne_ui/geppetto *.png *.css *.woff *.woff2
6+
7+
# Include any of these resources at any level
8+
recursive-include netpyne_ui/tests *.hoc
9+
10+
# Include also root files (basically the extension)
11+
include 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)