-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-NeuronPython3
More file actions
64 lines (52 loc) · 2.44 KB
/
Copy pathDockerfile-NeuronPython3
File metadata and controls
64 lines (52 loc) · 2.44 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#FROM opensciencegrid/osgvo-ubuntu-xenial
FROM ubuntu:18.10
#enable OSG cvmfs
RUN mkdir /cvmfs
# update and install required packages. Some of then may be substituted by anaconda.
RUN apt update && apt upgrade -y --no-install-recommends
RUN apt install -y --no-install-recommends apt-utils
RUN apt install -y --no-install-recommends build-essential g++ gfortran \
sudo git gsl-bin libgsl-dev file \
libzzip-dev libzlcore-data libzlcore-dev h5utils libhdf5-dev \
libblas-dev liblapack-dev \
ncurses-dev libreadline-dev openmpi-bin openmpi-common libopenmpi-dev \
libssl-dev openssl libffi-dev wget \
libsqlite3-dev libhdf5-dev libmagic-dev
RUN mkdir /usr/local/x86_64 && cd /usr/local/x86_64 && ln -s ../bin && ln -s ../lib && ln -s ../lib64 && ln -s ../sbin && ln -s ../share && \
[ -d "/usr/src" ]||{ mkdir /usr/src; }
WORKDIR /usr/src
# Install python
RUN wget --no-check-certificate https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
RUN tar -xvf Python-3.7.4.tar.xz && cd Python-3.7.4 && \
./configure --prefix=/usr --enable-shared --enable-ipv6 --without-tcltk --enable-optimizations && \
make && make install && cd ../ && rm -fR Python-3.7.4 Python-3.7.4.tar.xz && \
cd /usr/bin && ln -s python3 python && ln -s pip3 pip
# Install PIP
#RUN wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
#RUN python get-pip.py && rm get-pip.py
RUN pip install --upgrade pip
# #### Install required packeges ####
RUN pip install numpy
RUN pip install scipy
RUN pip install sympy
RUN pip install argparse PyHamcrest
RUN pip install brian2
RUN pip install --upgrade pyabf
RUN pip install netpyne
RUN pip install inspyred
RUN pip install h5py
RUN pip install psutil python-magic
RUN pip install --upgrade matplotlib pandas
# ### Installing NEURON ###
RUN wget --no-check-certificate https://neuron.yale.edu/ftp/neuron/versions/v7.6/7.6.7/nrn-7.6.7.tar.gz &&\
tar -xvf nrn-7.6.7.tar.gz
#BUILD Neuron
RUN cd nrn-7.6 && ./configure --prefix=/usr/local --without-x --with-nrniv --with-nrnpython=dynamic --with-pyexe=/usr/bin/python3 --with-mpi --with-paranrn && make && make install && \
cd /usr/local/lib/python && cp -a * /usr/lib/python3.7/site-packages && \
cd /usr/local/lib/ && rm -fR python && ln -s /usr/lib/python3.7/site-packages python && \
cd /usr/src && rm -fR nrn-7.6.7.tar.gz
#RTH module
COPY mrth3.py /usr/lib/python3.7/site-packages/mrth.py
RUN python -c "import mrth; mrth.versions()"
WORKDIR /home
RUN cd /home