diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d76b6a2c2343eda1fffd8c2e3f3f5185e14cb24f..8aa8401730899db0d845caf8ee01eb9a6df851b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,3 @@ singularity: - singularity build singularity.sif Singularity - ls -lh singularity.sif - singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" singularity.sif oras://"$CI_REGISTRY_IMAGE":latest - artifacts: - paths: - - singularity.sif diff --git a/Dockerfile b/Dockerfile index 9e77a043989fcab3331a68e9035ee128c43969a6..ad13a0a779e99c599e7696a068e5371265243543 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,8 @@ RUN curl https://gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7/-/r conda create --name py310-pytorch-1.13.1 --file conda-list--explicit.yml && \ eval "$(conda shell.bash hook)" && \ conda activate py310-pytorch-1.13.1 && \ - conda list --explicit > /conda-list--explicit.yml + conda list --explicit > /conda-list--explicit.yml && \ + conda clean --all --yes ADD https://gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7/-/raw/main/runscript.sh /runscript.sh RUN chmod 755 /runscript.sh diff --git a/Singularity b/Singularity index 725a8b5b067a3ea1de971fd8bb4253c30b6f9d45..71eeed47d555786eae42f4fcc458c88ad178fb64 100644 --- a/Singularity +++ b/Singularity @@ -15,7 +15,8 @@ curl https://gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7/-/raw/m conda create --name py310-pytorch-1.13.1 --file conda-list--explicit.yml && \ eval "$(conda shell.bash hook)" && \ conda activate py310-pytorch-1.13.1 && \ - conda list --explicit > /conda-list--explicit.yml + conda list --explicit > /conda-list--explicit.yml && \ + conda clean --all --yes %post eval "$(conda shell.bash hook)" && \