From 4f71d05d635cc80ea2cc10484c34af87a88ad48c Mon Sep 17 00:00:00 2001 From: ErnestaP Date: Thu, 9 Nov 2023 09:13:33 +0100 Subject: [PATCH] Docker file and requirements: added constrains * ref: cern-sis/issues-scoap3#239 --- Dockerfile | 4 +++- requirements-airflow.txt | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 53d0ae44..e825bde4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,12 @@ ENV AIRFLOW__LOGGING__LOGGING_LEVEL=DEBUG COPY requirements.txt ./requirements.txt COPY requirements-test.txt ./requirements-test.txt +COPY requirements-airflow.txt ./requirements-airflow.txt + COPY dags ./dags COPY airflow.cfg ./airflow.cfg RUN pip install --upgrade pip &&\ pip install --no-cache-dir --upgrade setuptools==59.1.1 &&\ pip install --no-cache-dir --upgrade wheel &&\ - pip install --no-cache-dir --user -r requirements.txt -r requirements-test.txt + pip install --no-cache-dir --user -r requirements.txt -r requirements-test.txt -r requirements-airflow.txt diff --git a/requirements-airflow.txt b/requirements-airflow.txt index 3baae326..e558f6e8 100644 --- a/requirements-airflow.txt +++ b/requirements-airflow.txt @@ -1,2 +1,2 @@ -psycopg2==2.9.6 -apache-airflow[celery]==2.6.0 --constraint https://raw.githubusercontent.com/apache/airflow/constraints-2.6.0/constraints-3.10.txt +-c https://raw.githubusercontent.com/apache/airflow/constraints-2.6.0/constraints-3.10.txt +apache-airflow[celery, postgres]==2.6.0