Commit 837afaf8 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed slow conda environment creation.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 4d3ed54a
Pipeline #27341 failed with stages
in 16 minutes and 42 seconds
...@@ -7,9 +7,11 @@ COPY *.yml /root/ ...@@ -7,9 +7,11 @@ COPY *.yml /root/
# update the ci_env environment (that already contains all packages installed via 'docker_pyenvs' repo) # update the ci_env environment (that already contains all packages installed via 'docker_pyenvs' repo)
# -> also include packages for conda deployment and upload # -> also include packages for conda deployment and upload
# NOTE: The pkgs directory (cache) is deleted because otherwise conda env create takes hours within a docker container.
RUN /bin/bash -i -c "\ RUN /bin/bash -i -c "\
source /root/mambaforge/bin/activate ; \ source /root/mambaforge/bin/activate ; \
mamba update -n base -c conda-forge --all;\ mamba update -n base -c conda-forge --all;\
conda activate ci_env; \ conda activate ci_env; \
mamba env update -n ci_env -f /root/environment_py_tools_ds.yml ; \ mamba env update -n ci_env -f /root/environment_py_tools_ds.yml ; \
mamba install -c conda-forge conda-build conda-build-all anaconda-client" mamba install -c conda-forge conda-build conda-build-all anaconda-client; \
rm -rf /root/mambaforge/pkgs"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment