Skip to content

Commit a5d7dca

Browse files
authored
Merge pull request #46 from MetaCell/development
Release 0.4
2 parents 66712cf + f93e736 commit a5d7dca

File tree

10 files changed

+205
-124
lines changed

10 files changed

+205
-124
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ env:
99
global:
1010
secure: dn0FPQ5IG4M/3kdwnyI78ElQ308Vc3QnKAvkWfwMFb8QxDqxQdnTo7AV1qTMtbLrDNkeEWIgi4nc7jmXNtvGTwOfhAULVh6606Qs5B+ezTdwzajbbFMI8SKQx/pnTojOMu8dx7V4lMoR/YWcojR0VC1IWVC62TGbSB1k5BDGgH0=
1111
install:
12-
- git clone --quiet -b $TRAVIS_BRANCH https://github.com/MetaCell/geppetto-netpyne.git
12+
- git clone --quiet https://github.com/MetaCell/geppetto-netpyne.git
13+
- cd geppetto-netpyne
14+
- 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
15+
- cd ..
1316
- npm install --silent -g phantomjs
1417
- npm install --silent -g casperjs
1518
- npm install --silent -g slimerjs
@@ -38,7 +41,7 @@ before_script:
3841
- export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
3942

4043
script:
41-
- travis_retry docker build -t="netpyne-ui" --build-arg netpyneuiBranch=$TRAVIS_BRANCH .
44+
- travis_retry docker build -t="netpyne-ui" --build-arg netpyneuiBranch=$TRAVIS_BRANCH -f="./Dockerfile_dev" .
4245
- travis_retry docker run -t -dit --name=netpyne-ui_container -h localhost -p 8888:8888 netpyne-ui:latest
4346
- cd $TRAVIS_BUILD_DIR/ && ls
4447
- cd geppetto-netpyne && ls

Dockerfile

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

4-
ARG netpyneuiBranch=0.2M3
5-
ENV netpyneuiBranch=${netpyneuiBranch}
6-
RUN echo "$netpyneuiBranch";
7-
84
RUN apt-get -qq update
95
RUN apt-get install -y \
106
locales \
@@ -13,7 +9,7 @@ RUN apt-get install -y \
139
g++ \
1410
build-essential \
1511
libncurses-dev \
16-
python \
12+
python2.7 \
1713
libpython-dev \
1814
cython \
1915
libx11-dev \
@@ -24,47 +20,44 @@ RUN apt-get install -y \
2420
libtool \
2521
libxext-dev \
2622
libncurses-dev \
27-
python3-dev \
23+
python2.7-dev \
2824
xfonts-100dpi \
29-
cython3 \
3025
libopenmpi-dev \
31-
python3-scipy \
26+
python2.7-scipy \
3227
make \
3328
zlib1g-dev \
3429
unzip \
3530
vim \
3631
libpng-dev
3732

38-
# Install latest iv and NEURON
39-
RUN git clone http://github.com/neuronsimulator/iv
40-
RUN git clone http://github.com/neuronsimulator/nrn
41-
WORKDIR iv
42-
RUN ./build.sh
43-
RUN ./configure
44-
RUN make --silent -j4
45-
RUN make --silent install -j4
46-
WORKDIR ../nrn
33+
# Install latest NEURON
34+
RUN git clone --branch 7.6.1crxd https://github.com/adamjhn/nrn.git
35+
WORKDIR nrn
4736
RUN ./build.sh
48-
RUN ./configure --with-nrnpython=python2 --with-paranrn
37+
RUN ./configure --without-x --with-nrnpython=python2 --without-paranrn --prefix="/home/jovyan/work/nrn/" --without-iv
4938
RUN make --silent -j4
5039
RUN make --silent install -j4
5140

5241
# Switch to non sudo, create a Python 2 virtual environment
5342
USER $NB_USER
54-
RUN conda update conda
43+
# Commenting out the conda update things broke!
44+
# RUN conda update conda
5545
RUN conda create --name snakes python=2
5646

5747
# Install NEURON python
5848
WORKDIR src/nrnpython
5949
ENV PATH="/home/jovyan/work/nrn/x86_64/bin:${PATH}"
6050
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"
6153

6254
ARG INCUBATOR_VER=unknown
6355
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"
6456
RUN /bin/bash -c "source activate snakes && jupyter nbextension enable --py jupyter_geppetto"
6557
RUN /bin/bash -c "source activate snakes && jupyter serverextension enable --py jupyter_geppetto"
6658
RUN /bin/bash -c "source activate snakes && jupyter nbextension enable --py widgetsnbextension"
6759

68-
RUN mkdir /home/jovyan/netpyne_workspace
60+
WORKDIR /home/jovyan
61+
RUN git clone https://github.com/Neurosim-lab/netpyne_workspace
6962
WORKDIR /home/jovyan/netpyne_workspace
7063
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token=''"

Dockerfile_dev

Lines changed: 16 additions & 19 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
@@ -13,7 +13,7 @@ RUN apt-get install -y \
1313
g++ \
1414
build-essential \
1515
libncurses-dev \
16-
python \
16+
python2.7 \
1717
libpython-dev \
1818
cython \
1919
libx11-dev \
@@ -24,48 +24,45 @@ RUN apt-get install -y \
2424
libtool \
2525
libxext-dev \
2626
libncurses-dev \
27-
python3-dev \
27+
python2.7-dev \
2828
xfonts-100dpi \
29-
cython3 \
3029
libopenmpi-dev \
31-
python3-scipy \
30+
python2.7-scipy \
3231
make \
3332
zlib1g-dev \
3433
unzip \
3534
vim \
3635
libpng-dev
3736

3837
# Install latest iv and NEURON
39-
RUN git clone http://github.com/neuronsimulator/iv
40-
RUN git clone http://github.com/neuronsimulator/nrn
41-
WORKDIR iv
38+
RUN git clone --branch 7.6.1crxd https://github.com/adamjhn/nrn.git
39+
WORKDIR nrn
4240
RUN ./build.sh
43-
RUN ./configure
44-
RUN make --silent -j4
45-
RUN make --silent install -j4
46-
WORKDIR ../nrn
47-
RUN ./build.sh
48-
RUN ./configure --with-nrnpython=python2 --with-paranrn
41+
RUN ./configure --without-x --with-nrnpython=python2 --without-paranrn --prefix="/home/jovyan/work/nrn/" --without-iv
4942
RUN make --silent -j4
5043
RUN make --silent install -j4
5144

5245
# Switch to non sudo, create a Python 2 virtual environment
5346
USER $NB_USER
54-
RUN conda update conda
47+
# Commenting out the conda update things broke!
48+
# RUN conda update conda
5549
RUN conda create --name snakes python=2
5650

5751
# Install NEURON python
5852
WORKDIR src/nrnpython
5953
ENV PATH="/home/jovyan/work/nrn/x86_64/bin:${PATH}"
6054
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"
6157

6258
# Clone NetPyNE-UI and install the development version
6359
WORKDIR ../../../
6460
RUN wget https://github.com/MetaCell/NetPyNE-UI/archive/$netpyneuiBranch.zip
6561
RUN unzip $netpyneuiBranch.zip
6662
WORKDIR NetPyNE-UI-$netpyneuiBranch/utilities
6763
RUN /bin/bash -c "source activate snakes && python --version"
68-
RUN /bin/bash -c "source activate snakes && exec python install.py"
69-
RUN mkdir /home/jovyan/netpyne_workspace
64+
RUN /bin/bash -c "source activate snakes && exec python install.py branch $netpyneuiBranch"
65+
WORKDIR /home/jovyan
66+
RUN git clone https://github.com/Neurosim-lab/netpyne_workspace
7067
WORKDIR /home/jovyan/netpyne_workspace
71-
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token=''"
68+
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token=''"

docs/controlpanel.jpg

103 KB
Loading

docs/hyper-v.png

19.1 KB
Loading

docs/program_features.png

16.3 KB
Loading

0 commit comments

Comments
 (0)