Skip to content

Commit f3bce4f

Browse files
author
Facu
authored
Merge branch 'development' into plotinclude
2 parents c2cfd92 + 69f1d14 commit f3bce4f

35 files changed

Lines changed: 568 additions & 1344 deletions

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ script:
6767
- "curl -s -I $1 http://localhost:8888/geppetto | grep HTTP/1.1 | awk {'print $2'}"
6868
- firefox --version
6969
- 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
70+
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
71+
- docker logs -t netpyne-ui_container
7172
- docker stop $(docker ps -a -q)
7273
- docker rm $(docker ps -a -q)

Dockerfile

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ RUN apt-get install -y \
99
g++ \
1010
build-essential \
1111
libncurses-dev \
12-
python2.7 \
1312
libpython-dev \
1413
cython \
1514
libx11-dev \
@@ -20,36 +19,31 @@ RUN apt-get install -y \
2019
libtool \
2120
libxext-dev \
2221
libncurses-dev \
23-
python2.7-dev \
2422
xfonts-100dpi \
2523
libopenmpi-dev \
26-
python2.7-scipy \
2724
make \
2825
zlib1g-dev \
2926
unzip \
3027
vim \
3128
libpng-dev
3229

33-
# Install latest NEURON
34-
RUN git clone --branch 7.6.1crxd https://github.com/adamjhn/nrn.git
30+
# Switch to non sudo, create a Python 3 virtual environment
31+
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
3536
WORKDIR nrn
3637
RUN ./build.sh
37-
RUN ./configure --without-x --with-nrnpython=python2 --without-paranrn --prefix="/home/jovyan/work/nrn/" --without-iv
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"
3840
RUN make --silent -j4
3941
RUN make --silent install -j4
4042

41-
# Switch to non sudo, create a Python 2 virtual environment
42-
USER $NB_USER
43-
# Commenting out the conda update things broke!
44-
# RUN conda update conda
45-
RUN conda create --name snakes python=2
46-
4743
# Install NEURON python
4844
WORKDIR src/nrnpython
4945
ENV PATH="/home/jovyan/work/nrn/x86_64/bin:${PATH}"
5046
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"
5347

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

Dockerfile_dev

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ RUN apt-get install -y \
1313
g++ \
1414
build-essential \
1515
libncurses-dev \
16-
python2.7 \
1716
libpython-dev \
1817
cython \
1918
libx11-dev \
@@ -24,36 +23,32 @@ RUN apt-get install -y \
2423
libtool \
2524
libxext-dev \
2625
libncurses-dev \
27-
python2.7-dev \
2826
xfonts-100dpi \
2927
libopenmpi-dev \
30-
python2.7-scipy \
3128
make \
3229
zlib1g-dev \
3330
unzip \
3431
vim \
3532
libpng-dev
3633

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+
3738
# Install latest iv and NEURON
38-
RUN git clone --branch 7.6.1crxd https://github.com/adamjhn/nrn.git
39+
RUN git clone --branch 7.6.2 https://github.com/neuronsimulator/nrn
3940
WORKDIR nrn
4041
RUN ./build.sh
41-
RUN ./configure --without-x --with-nrnpython=python2 --without-paranrn --prefix="/home/jovyan/work/nrn/" --without-iv
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"
4244
RUN make --silent -j4
4345
RUN make --silent install -j4
4446

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
5047

5148
# Install NEURON python
5249
WORKDIR src/nrnpython
5350
ENV PATH="/home/jovyan/work/nrn/x86_64/bin:${PATH}"
5451
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"
5752

5853
# Clone NetPyNE-UI and install the development version
5954
WORKDIR ../../../

0 commit comments

Comments
 (0)