Commit 2b2a9e15 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

CI setup now updates ci_env environment installed via docker_pyenvs instead of...

CI setup now updates ci_env environment installed via docker_pyenvs instead of creating an independent environment.
parent 7f6d350f
Pipeline #3139 failed with stage
in 1 minute and 13 seconds
......@@ -18,8 +18,8 @@ test_gms_preprocessing:
stage: test
script:
- source /root/miniconda3/bin/activate
- source activate gms_preprocessing
- export GDAL_DATA=/root/miniconda3/envs/gms_preprocessing/share/gdal
- source activate ci_env
- export GDAL_DATA=/root/miniconda3/envs/ci_env/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- export GMS_db_host=${GMS_DB_HOST}
- export GMS_index_host=${GMS_INDEX_HOST}
......@@ -50,8 +50,8 @@ test_styles:
stage: test
script:
- source /root/miniconda3/bin/activate
- source activate gms_preprocessing
- export GDAL_DATA=/root/miniconda3/envs/gms_preprocessing/share/gdal
- source activate ci_env
- export GDAL_DATA=/root/miniconda3/envs/ci_env/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
# - pip install "pycodestyle>=2.0.0,!=2.4.0" # TODO remove as soon as docker runner is recreated
- make lint
......
FROM gms_base_centos:latest
FROM gms_base_centos:0.2
# copy some needed stuff to /root
COPY *.yml /root/
# create conda environment
# NOTE: add defaults below conda-forge to avoid library version incompatibilities due to libs from different channels
# update the ci_env environment (that already contains all packages installed via 'docker_pyenvs' repo)
RUN /bin/bash -i -c "\
source /root/miniconda3/bin/activate ; \
source activate ci_env; \
conda env update -f /root/environment_gms_preprocessing.yml"
# copy sicor code to /tmp
......
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