forked from LFPy/LFPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
64 lines (51 loc) · 1.57 KB
/
Copy pathDockerfile
File metadata and controls
64 lines (51 loc) · 1.57 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
63
64
# -------- base ---------
FROM buildpack-deps:hirsute AS base
RUN apt-get update && \
apt-get install -y \
python3-dev \
python3-numpy \
python3-scipy \
python3-matplotlib \
python3-pytest \
python3-pip \
cython3 \
jupyter \
ipython3 \
cmake \
bison \
flex \
libmpich-dev \
mpich \
libncurses-dev
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && \
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10 && \
update-alternatives --install /usr/bin/ipython ipython /usr/bin/ipython3 10
# ------ latest -----------
# FROM base AS latest
# --- install NEURON from source
# (only way to get builds on arm64/aarch64 hosts working) -------
RUN cd /opt
RUN git clone --depth=1 -b 8.0.0 https://github.com/neuronsimulator/nrn
RUN mkdir nrn-bld && cd nrn-bld
# export MPI_LIB_NRN_PATH=$CONDA_PREFIX/lib/libmpicxx.dylib
# export DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib:$DYLD_LIBRARY_PATH
RUN cmake -DCMAKE_INSTALL_PREFIX=/usr/local/ \
-DCURSES_NEED_NCURSES=ON \
-DNRN_ENABLE_INTERVIEWS=OFF \
-DNRN_ENABLE_RX3D=ON \
-DNRN_ENABLE_MPI=ON \
../nrn
RUN cmake --build . --parallel 4 --target install && \
cd ..
RUN cd
RUN rm -rf nrn && rm -rf nrn-bld
# add nrnpython to PYTHONPATH
ENV PYTHONPATH /usr/local/lib/python:${PYTHONPATH}
# --- Install LFPy ----
RUN git clone --depth=1 --branch master https://github.com/LFPy/LFPy
RUN cd LFPy && \
pip install .
RUN cd
RUN rm -rf LFPy
# ---install misc using pip
# RUN pip install pandas