Skip to content

Commit 8c861c6

Browse files
committed
Fix jlab deployment
1 parent 13c0831 commit 8c861c6

File tree

2 files changed

+17
-30
lines changed

2 files changed

+17
-30
lines changed

applications/jupyterlab/Dockerfile

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,22 @@ USER root
44

55
#### General packages via apt-get
66

7-
RUN apt-get update && apt-get install graphviz openjdk-11-jre-headless git vim htop ncdu make cmake libncurses-dev g++ -y
8-
7+
RUN apt-get update && apt-get install -y graphviz openjdk-11-jre-headless git vim htop ncdu make cmake libncurses-dev g++ \
8+
#LFPy dependencies
9+
libopenmpi-dev \
10+
# Octave etc.
11+
octave octave-statistics
912
################################################################################
1013

1114

12-
#### Install needed linux packages
13-
14-
USER root
15-
# LFPy
16-
RUN apt-get update && apt-get install libopenmpi-dev -y
17-
18-
#### Octave etc.
19-
RUN apt-get update && apt-get install octave octave-statistics -y
2015

2116
#### Install Python packages
2217
USER jovyan
2318
COPY requirements.txt requirements.txt
24-
RUN pip install -r requirements.txt --upgrade --no-cache-dir
19+
RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip setuptools &&\
20+
pip install -r requirements.txt --upgrade --no-cache-dir
21+
22+
RUN conda install pytorch torchvision cpuonly -c pytorch
2523

2624
#### General Python packages
2725
####RUN jupyter labextension install plotlywidget
@@ -77,14 +75,9 @@ RUN wget --no-verbose -P `pip show LFPykit | grep "Location:" | awk '{print $2"/
7775
ARG NOCACHE
7876

7977
USER root
80-
# LFPy
81-
RUN apt-get update && apt-get install libopenmpi-dev -y
82-
83-
# Octave etc.
84-
RUN apt-get update && apt-get install octave octave-statistics -y
8578

8679
# NEST
87-
ENV NEST_VER=3.5
80+
ENV NEST_VER=3.8
8881
ENV NEST_HOME=/opt/conda/nest
8982
RUN cd /tmp && \
9083
wget -nv https://github.com/nest/nest-simulator/archive/v$NEST_VER.tar.gz && \
@@ -103,7 +96,7 @@ USER jovyan
10396

10497
#### Install Python packages
10598

106-
RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\
99+
RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip && \
107100
pip install backports.tarfile>=1.2 # temp fix for error: ImportError: cannot import name 'tarfile' from 'backports'
108101
RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\
109102
pip install -r requirements.txt --upgrade --no-cache-dir
@@ -117,14 +110,15 @@ RUN git clone https://github.com/NeuroML/NeuroML2
117110
# Install XPP
118111
RUN git clone https://github.com/NeuroML/xppaut
119112
USER root
120-
RUN apt install -y libx11-dev && cd xppaut && make -j4
113+
RUN apt-get update && apt install -y libx11-dev && cd xppaut && make -j4
121114
USER jovyan
122115
ENV XPP_HOME=/home/jovyan/xppaut
123116
ENV PATH=$PATH:$XPP_HOME
124117

125118
#########################################################################
126119
# fix for https://github.com/jupyter/notebook/issues/7048
127-
RUN pip install traitlets==5.9.0
120+
RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip &&\
121+
pip install traitlets==5.9.0
128122

129123
COPY --chown=jovyan:users overrides/* /opt/conda/share/jupyter/lab/static/
130124
RUN cp /opt/conda/share/jupyter/lab/static/main*.js /opt/conda/share/jupyter/lab/static/main.js

applications/jupyterlab/requirements.txt

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
setuptools>=80.9.0
2-
# temporary fix until new NEST releases are made with the fix: https://github.com/nest/nest-simulator/issues/3495
3-
cython<3.1.0
4-
51
pyneuroml
62
pyelectro
73
git+https://github.com/NeuralEnsemble/neurotune.git
84

95
#### NEURON & NetPyNE
10-
neuron==8.2.6
6+
neuron==8.2.7
117

128
# Install specific version of NetPyNE
139
git+https://github.com/Neurosim-lab/netpyne.git@osbv2#egg=netpyne
@@ -44,9 +40,6 @@ seaborn
4440

4541
#### Machine learning libs
4642

47-
# Note: this just installs pytorch for cpu, the default install adds a v large cuda lib
48-
-f https://download.pytorch.org/whl/torch_stable.html
49-
torch==2.3.0+cpu
5043

5144
# For MDF
5245
modeci_mdf
@@ -71,8 +64,8 @@ plotly
7164

7265

7366
#### Install OMV
74-
OSBModelValidation==0.3.5
67+
OSBModelValidation==0.3.8
7568

7669

7770
#### Final updates
78-
numpy # Removes some issues with LFPy...
71+
numpy>=2.0.0 # Removes some issues with LFPy...

0 commit comments

Comments
 (0)