Skip to content

Commit

Permalink
Docker file and requirements: added constrains
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP authored and pamfilos committed Nov 9, 2023
1 parent 70d8fd6 commit 4f71d05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions requirements-airflow.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4f71d05

Please sign in to comment.