Skip to content

Commit

Permalink
add again necessary python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMarchand20 committed Jul 29, 2024
1 parent e204cd4 commit 5f16b9b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 11 deletions.
19 changes: 14 additions & 5 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ RUN apt-get update \
python3-pip python3-dev python3-venv\
# needed for openmp with clang
libomp-dev \
doxygen
doxygen\
python3-pip python3-dev python3-venv \
&& python3.12 -m venv .venv \
&& .venv/bin/python -m pip install --no-cache-dir --upgrade\
pip pytest wheel setuptools cmakelang scipy numpy \
&& rm -rf /var/lib/apt/lists/*

FROM debian_base AS debian_gcc_openmpi

Expand All @@ -44,7 +49,8 @@ RUN mkdir /tmp/openmpi-src \
&& CC=gcc CXX=g++ ./configure ${OPENMPI_CONFIGURE_OPTIONS} \
&& make all ${OPENMPI_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/openmpi-src && ldconfig
&& cd && rm -rf /tmp/openmpi-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -73,7 +79,8 @@ RUN mkdir /tmp/openmpi-src \
&& CC=clang CXX=clang++ ./configure ${OPENMPI_CONFIGURE_OPTIONS} \
&& make all ${OPENMPI_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/openmpi-src && ldconfig
&& cd && rm -rf /tmp/openmpi-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -102,7 +109,8 @@ RUN mkdir /tmp/mpich-src && cd /tmp/mpich-src \
&& CC=gcc CXX=g++ ./configure ${MPICH_CONFIGURE_OPTIONS} \
&& make ${MPICH_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/mpich-src && ldconfig
&& cd && rm -rf /tmp/mpich-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -131,7 +139,8 @@ RUN mkdir /tmp/mpich-src && cd /tmp/mpich-src \
&& CC=clang CXX=clang++ ./configure ${MPICH_CONFIGURE_OPTIONS} \
&& make ${MPICH_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/mpich-src && ldconfig
&& cd && rm -rf /tmp/mpich-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down
21 changes: 15 additions & 6 deletions ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ RUN apt-get update \
liblapack-dev \
libsuitesparse-dev \
libomp-dev \
doxygen \
python3-pip python3-dev python3-venv
doxygen\
python3-pip python3-dev python3-venv \
&& python3.12 -m venv .venv \
&& .venv/bin/python -m pip install --no-cache-dir --upgrade\
pip pytest wheel setuptools cmakelang scipy numpy \
&& rm -rf /var/lib/apt/lists/*



FROM ubuntu_base AS ubuntu_gcc_openmpi
Expand All @@ -44,7 +49,8 @@ RUN mkdir /tmp/openmpi-src \
&& CC=gcc CXX=g++ ./configure ${OPENMPI_CONFIGURE_OPTIONS} \
&& make all ${OPENMPI_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/openmpi-src && ldconfig
&& cd && rm -rf /tmp/openmpi-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -73,7 +79,8 @@ RUN mkdir /tmp/openmpi-src \
&& CC=clang CXX=clang++ ./configure ${OPENMPI_CONFIGURE_OPTIONS} \
&& make all ${OPENMPI_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/openmpi-src && ldconfig
&& cd && rm -rf /tmp/openmpi-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -103,7 +110,8 @@ RUN mkdir /tmp/mpich-src && cd /tmp/mpich-src \
&& CC=gcc CXX=g++ ./configure ${MPICH_CONFIGURE_OPTIONS} \
&& make ${MPICH_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/mpich-src && ldconfig
&& cd && rm -rf /tmp/mpich-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -131,7 +139,8 @@ RUN mkdir /tmp/mpich-src && cd /tmp/mpich-src \
&& CC=clang CXX=clang++ ./configure ${MPICH_CONFIGURE_OPTIONS} \
&& make ${MPICH_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/mpich-src && ldconfig
&& cd && rm -rf /tmp/mpich-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down

0 comments on commit 5f16b9b

Please sign in to comment.