-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (29 loc) · 1.19 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM neuralensemble/base
MAINTAINER [email protected]
ENV NRN_VER=7.4
ENV NRN=nrn-$NRN_VER
ENV PATH=$PATH:$VENV/bin
RUN ln -s /usr/bin/2to3-3.4 $VENV/bin/2to3
WORKDIR $HOME/packages
RUN wget http://www.neuron.yale.edu/ftp/neuron/versions/v$NRN_VER/$NRN.tar.gz
RUN tar xzf $NRN.tar.gz; rm $NRN.tar.gz
RUN git clone --depth 1 https://github.com/INCF/libneurosim.git
RUN cd libneurosim; ./autogen.sh
RUN mkdir $VENV/build
WORKDIR $VENV/build
RUN mkdir libneurosim; \
cd libneurosim; \
PYTHON=$VENV/bin/python $HOME/packages/libneurosim/configure --prefix=$VENV; \
make; make install; ls $VENV/lib $VENV/include
RUN mkdir $NRN; \
cd $NRN; \
$HOME/packages/$NRN/configure --with-paranrn --with-nrnpython=$VENV/bin/python --disable-rx3d --without-iv --prefix=$VENV; \
make; make install; \
cd src/nrnpython; $VENV/bin/python setup.py install; \
cd $VENV/bin; ln -s ../x86_64/bin/nrnivmodl
RUN $VENV/bin/pip3 install lazyarray nrnutils PyNN==0.9.1 jupyter
WORKDIR /home/docker/
RUN echo "source $VENV/bin/activate" >> .bashrc
WORKDIR /home/docker/packages
RUN git clone https://github.com/DavidTingley/papers
WORKDIR /home/docker/packages/papers/LS_phasecoding/modeling