Skip to content

Commit

Permalink
Add PYTHONPATH to improve robustness against Singularity
Browse files Browse the repository at this point in the history
  • Loading branch information
matbun committed Nov 14, 2024
1 parent cd46bf3 commit 4a6d9a9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions env-files/tensorflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ RUN pip install --no-cache-dir --upgrade pip \
tf_keras==2.16.* \
"prov4ml[linux,nvidia]@git+https://github.com/matbun/ProvML@new-main"

# Inprove robustness: avoid silent override by Singularity/Apptainer
ENV PYTHONPATH=""

# Install itwinai
COPY pyproject.toml pyproject.toml
COPY src src
Expand Down
3 changes: 3 additions & 0 deletions env-files/torch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ RUN apt-get update && apt-get install -y \
dot2tex \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*

# Inprove robustness: avoid silent override by Singularity/Apptainer
ENV PYTHONPATH=""

# https://github.com/mpi4py/mpi4py/pull/431
RUN pip install --no-cache-dir --upgrade pip \
&& env SETUPTOOLS_USE_DISTUTILS=local python -m pip install --no-cache-dir mpi4py
Expand Down
3 changes: 3 additions & 0 deletions env-files/torch/jupyter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ RUN pip install --no-cache-dir --upgrade pip \
### itwinai ###
#############################

# Inprove robustness: avoid silent override by Singularity/Apptainer
ENV PYTHONPATH=""

USER root

RUN apt-get update && apt-get install -y \
Expand Down
3 changes: 3 additions & 0 deletions env-files/torch/jupyter/jupyter-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ RUN pip install --no-cache-dir --upgrade pip \
### itwinai ###
#############################

# Inprove robustness: avoid silent override by Singularity/Apptainer
ENV PYTHONPATH=""

# USER root

# RUN apt-get update && apt-get install -y \
Expand Down

0 comments on commit 4a6d9a9

Please sign in to comment.