Skip to content

Commit

Permalink
mv venv to /usr/local/share
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMarchand20 committed Jul 30, 2024
1 parent 3c555e1 commit ad57523
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
16 changes: 11 additions & 5 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ RUN apt-get update \
libomp-dev \
doxygen\
python3-pip python3-dev python3-venv \
&& python3.11 -m venv .venv \
&& python3.11 -m venv /usr/local/share/venv \
&& . /usr/local/share/venv/bin/activate \
&& python -m pip install --no-cache-dir --upgrade\
&& .venv/bin/python -m pip install --no-cache-dir --upgrade\
pip pytest wheel setuptools cmakelang scipy numpy \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -50,7 +52,8 @@ RUN mkdir /tmp/openmpi-src \
&& make all ${OPENMPI_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/openmpi-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py
&& . /usr/local/share/venv/bin/activate \
&& python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -80,7 +83,8 @@ RUN mkdir /tmp/openmpi-src \
&& make all ${OPENMPI_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/openmpi-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py
&& . /usr/local/share/venv/bin/activate \
&& python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -110,7 +114,8 @@ RUN mkdir /tmp/mpich-src && cd /tmp/mpich-src \
&& make ${MPICH_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/mpich-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py
&& . /usr/local/share/venv/bin/activate \
&& python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -140,7 +145,8 @@ RUN mkdir /tmp/mpich-src && cd /tmp/mpich-src \
&& make ${MPICH_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/mpich-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py
&& . /usr/local/share/venv/bin/activate \
&& python -m pip install --no-cache-dir mpi4py

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

Expand All @@ -50,7 +51,8 @@ RUN mkdir /tmp/openmpi-src \
&& make all ${OPENMPI_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/openmpi-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py
&& . /usr/local/share/venv/bin/activate \
&& python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -80,7 +82,8 @@ RUN mkdir /tmp/openmpi-src \
&& make all ${OPENMPI_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/openmpi-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py
&& . /usr/local/share/venv/bin/activate \
&& python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -111,7 +114,8 @@ RUN mkdir /tmp/mpich-src && cd /tmp/mpich-src \
&& make ${MPICH_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/mpich-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py
&& . /usr/local/share/venv/bin/activate \
&& python -m pip install --no-cache-dir mpi4py

#### ADD DEFAULT USER ####
ARG USER=mpi
Expand Down Expand Up @@ -140,7 +144,8 @@ RUN mkdir /tmp/mpich-src && cd /tmp/mpich-src \
&& make ${MPICH_MAKE_OPTIONS} \
&& make install \
&& cd && rm -rf /tmp/mpich-src && ldconfig \
&& .venv/bin/python -m pip install --no-cache-dir mpi4py
&& . /usr/local/share/venv/bin/activate \
&& python -m pip install --no-cache-dir mpi4py

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

0 comments on commit ad57523

Please sign in to comment.