Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with the new numpy version in dev #247

Merged
merged 32 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
29adbb2
Merge build and deploy to fix deploy problems
steffengraber Feb 9, 2024
3d52979
Merge remote-tracking branch 'upstream/master'
steffengraber Mar 7, 2024
e1cfa85
Merge remote-tracking branch 'upstream/master'
steffengraber Mar 8, 2024
d63f2f4
Merge remote-tracking branch 'upstream/master'
steffengraber Mar 26, 2024
ab7e910
Merge remote-tracking branch 'upstream/master'
steffengraber Apr 4, 2024
1adf82e
Add nest-server requirements
steffengraber Apr 4, 2024
5301617
Fix nest-desktop and compose file
steffengraber Apr 4, 2024
c384fb0
Add v3.7
steffengraber Apr 12, 2024
93b1397
Merge branch 'fix-nest-server'
steffengraber Apr 12, 2024
a52208a
Merge remote-tracking branch 'upstream/master'
steffengraber Apr 15, 2024
d01ede0
Remove test
steffengraber Apr 19, 2024
fa70bbb
Add v3.7 to readme
steffengraber Apr 19, 2024
fe3ca17
Merge remote-tracking branch 'upstream/master'
steffengraber May 15, 2024
52d7575
Fix nestml version and add pygsl
steffengraber May 15, 2024
5fd6274
Merge remote-tracking branch 'upstream/master'
steffengraber Jun 17, 2024
685f670
Merge remote-tracking branch 'upstream/master'
steffengraber Jun 20, 2024
d016e77
Merge remote-tracking branch 'upstream/master'
steffengraber Jul 17, 2024
b2ee7da
Install nestml fix for nest verssion
steffengraber Jul 17, 2024
00d1176
Merge remote-tracking branch 'upstream/master'
steffengraber Jul 18, 2024
28e1391
Fix merging errors
steffengraber Jul 18, 2024
de16dfe
Merge remote-tracking branch 'upstream/master'
steffengraber Jul 22, 2024
4527fa9
Merge remote-tracking branch 'upstream/master'
steffengraber Jul 22, 2024
c567942
Merge remote-tracking branch 'upstream/master'
steffengraber Jul 22, 2024
1174227
Merge remote-tracking branch 'upstream/master'
steffengraber Aug 1, 2024
e99a8a3
Deactivate build of 3.7 and 2.20.2 in CI
steffengraber Aug 1, 2024
fe8fe76
Add rc2
steffengraber Aug 1, 2024
9f9e145
NEW Version 3.8
steffengraber Aug 5, 2024
64354c4
Merge remote-tracking branch 'upstream/master'
steffengraber Aug 6, 2024
2f4ec0f
Merge remote-tracking branch 'upstream/master'
steffengraber Aug 22, 2024
5fcb523
Merge remote-tracking branch 'upstream/master'
steffengraber Sep 26, 2024
4a01baa
Fix pygsl installation
steffengraber Sep 26, 2024
24f7bb2
Fix numpy/pandas issue
steffengraber Sep 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python3 -m pip install --upgrade gsl wheel setuptools swig

#Latest update to nestml v8.0.0-rc1
RUN python3 -m pip install nestml==8.0.0rc2

RUN python3 -m pip install nestml-server@git+https://github.com/babsey/[email protected] && \
python3 -m pip install --upgrade pygsl@git+https://github.com/pygsl/[email protected]
RUN python3 -m pip install nestml==8.0.0rc2 && \
python3 -m pip install nestml-server@git+https://github.com/babsey/[email protected] && \
python3 -m pip install --upgrade pygsl@git+https://github.com/pygsl/[email protected]

COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

COPY test-nest.sh /opt/test-nest.sh
RUN chmod +x /opt/test-nest.sh
Expand Down
72 changes: 29 additions & 43 deletions src/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ENV TERM=xterm \
DEBIAN_FRONTEND=noninteractive \
PATH=/root/.local/bin:${PATH}

RUN apt-get update && apt-get install -y --no-install-recommends \
RUN apt-get update && apt-get install -y --no-install-recommends \
automake \
autotools-dev \
build-essential \
Expand All @@ -24,6 +24,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
git \
gosu \
jq \
junitparser \
less \
libboost-filesystem-dev libboost-regex-dev libboost-wave-dev \
libboost-python-dev libboost-program-options-dev libboost-test-dev \
Expand Down Expand Up @@ -60,7 +61,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python3-ipython \
python3-junitparser \
python3-jupyter-core \
python3-matplotlib \
python3-mpi4py \
python3-nose \
python3-pandas \
Expand All @@ -70,6 +70,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python3-pytest-timeout \
python3-pytest-xdist \
python3-restrictedpython \
python3-scipy \
python3-setuptools \
python3-sphinx \
python3-statsmodels \
Expand All @@ -82,46 +83,27 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
uwsgi \
vera++ \
wget && \
apt-get autoremove

RUN python3 -m pip install --upgrade scipy numpy numpydoc
RUN python3 -m pip install --upgrade pip setuptools wheel mock
RUN python3 -m pip install --force-reinstall --upgrade --no-binary=h5py h5py
RUN ldconfig
apt-get autoremove && \
python3 -m pip install --upgrade pip setuptools wheel mock && \
python3 -m pip install --force-reinstall --upgrade --no-binary=h5py h5py && \
ldconfig

# Download NEST
RUN cd ${SRC_PATH} && \
wget https://github.com/nest/nest-simulator/archive/refs/heads/${NEST_VERSION}.tar.gz -P ${SRC_PATH} && \
tar -xzf ${NEST_VERSION}.tar.gz

# Installing the requirements_docs.txt stops at some time with an error
# Installing every package fix it.
# RUN python3 -m pip install sphinx>=6.2.1 sphinx_rtd_theme sphinx_autobuild sphinx_gallery sphinx-tabs
# RUN python3 -m pip install sphinx_design sphinx-material sphinx-copybutton sphinx-carousel
# RUN python3 -m pip install sphinx-notfound-page sphinxcontrib-mermaid sphinxcontrib-plantuml nbsphinx
# RUN python3 -m pip install example Image breathe csvkit docutils PyYAML>=4.2b1 tqdm yamllint

RUN python3 -m pip install -r ${SRC_PATH}/nest-simulator-${NEST_VERSION}/requirements.txt

# RUN python3 -m pip install sphinx_gallery==0.10.1

# Install music
RUN chmod +x ${SRC_PATH}/nest-simulator-${NEST_VERSION}/build_support/install_music.sh && \
${SRC_PATH}/nest-simulator-${NEST_VERSION}/build_support/install_music.sh

# # Install libneurosim
# RUN cd ${SRC_PATH}/nest-simulator-${NEST_VERSION} && \
# PYLIB_DIR="$(python3 -c "import sysconfig; print(sysconfig.get_path('include'))" | sed 's/include/lib/')" && \
# chmod +x ${SRC_PATH}/nest-simulator-${NEST_VERSION}/build_support/install_csa-libneurosim.sh && \
# ${SRC_PATH}/nest-simulator-${NEST_VERSION}/build_support/install_csa-libneurosim.sh $PYLIB_DIR
# # Install sionlib
# RUN chmod +x ${SRC_PATH}/nest-simulator-${NEST_VERSION}/build_support/install_sionlib.sh && \
# ${SRC_PATH}/nest-simulator-${NEST_VERSION}/build_support/install_sionlib.sh
# Install python requirements
# RUN pip install -r ${SRC_PATH}/nest-simulator-${NEST_VERSION}/requirements.txt

# Build nest
RUN mkdir ${SRC_PATH}/nest-build && cd $_ && \
# Installing every package fix it.
RUN python3 -m pip install sphinx>=6.2.1 sphinx_rtd_theme sphinx_autobuild sphinx-tabs && \
python3 -m pip install sphinx_design sphinx-material sphinx-copybutton sphinx-carousel && \
python3 -m pip install sphinx-notfound-page sphinxcontrib-mermaid sphinxcontrib-plantuml nbsphinx && \
python3 -m pip install numpydoc example Image breathe csvkit docutils PyYAML>=4.2b1 tqdm yamllint && \
# RUN python3 -m pip install -r ${SRC_PATH}/nest-simulator-${NEST_VERSION}/requirements_docs.txt
python3 -m pip install sphinx_gallery==0.13.0 'numpy<=1.26' && \
chmod +x ${SRC_PATH}/nest-simulator-${NEST_VERSION}/build_support/install_music.sh && \
${SRC_PATH}/nest-simulator-${NEST_VERSION}/build_support/install_music.sh && \
mkdir ${SRC_PATH}/nest-build && cd $_ && \
cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/nest \
-Dwith-optimize="-O2" \
-Dwith-warning=ON \
Expand All @@ -135,21 +117,25 @@ RUN mkdir ${SRC_PATH}/nest-build && cd $_ && \
-Dwith-openmp=ON \
-Dwith-libneurosim=OFF \
-Dwith-sionlib=OFF \
-Dwith-music=ON \
-Dwith-music='$HOME/.cache/libneurosim.install' \
-Dwith-hdf5=ON \
${SRC_PATH}/nest-simulator-${NEST_VERSION} && \
make && \
make install

# Install NESTML and more
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install nest-desktop --pre && \
python3 -m pip uninstall nestml -y && \
python3 -m pip install --upgrade https://github.com/nest/nestml/archive/refs/heads/master.zip && \
python3 -m pip install nestml-server@git+https://github.com/babsey/[email protected]
RUN python3 -m pip install --upgrade pip setuptools wheel && \
python3 -m pip install -r ${SRC_PATH}/nest-simulator-${NEST_VERSION}/requirements.txt && \
python3 -m pip install --upgrade nest-desktop && \
python3 -m pip install --upgrade scipy && \
python3 -m pip install --upgrade gsl wheel setuptools swig

#Latest update to nestml v8.0.0-rc1
RUN python3 -m pip install nestml==8.0.0rc2 && \
python3 -m pip install nestml-server@git+https://github.com/babsey/[email protected] && \
python3 -m pip install --upgrade pygsl@git+https://github.com/pygsl/[email protected]

COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

COPY test-nest.sh /opt/test-nest.sh
RUN chmod +x /opt/test-nest.sh
Expand Down