gms_preprocessing_ci.docker 834 Bytes
Newer Older
1
FROM ci_base_centos:0.2
Daniel Scheffler's avatar
Daniel Scheffler committed
2
3

# copy some needed stuff to /root
4
COPY *.yml /root/
5
COPY *.sh /root/
6

7
# update the ci_env environment (that already contains all packages installed via 'docker_pyenvs' repo)
8
# NOTE: The pkgs directory (cache) is deleted because otherwise conda env create takes hours within a docker container.
9
RUN /bin/bash -i -c "\
10
11
    source /root/mambaforge/bin/activate; \
    mamba update -n base -c conda-forge --all;\
12
    conda activate ci_env; \
13
14
    mamba env update -n ci_env -f /root/environment_gms_preprocessing.yml; \
    rm -rf /root/mambaforge/pkgs"
15

16
# download SICOR atmospheric lookup tables and copy already created cache files to SICOR root dir to speed up SICOR in CI jobs
17
RUN mkdir /tmp/sicor_cache
18
COPY *.zip /tmp/sicor_cache/
19
RUN /bin/bash -i -c "\
20
    bash /root/setup_sicor_tables_and_cachefiles.sh"