Skip to content

Commit

Permalink
Airflow docker change
Browse files Browse the repository at this point in the history
  • Loading branch information
damklis committed Jul 31, 2020
1 parent b5564cd commit 5714b41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ services:
before_script: pip install docker-compose

script:
- docker-compose run airflow sh -c "./usr/local/airflow/dags/run_unit_tests.sh"
- docker-compose run airflow sh -c "python -m pytest --show-capture=no""
10 changes: 3 additions & 7 deletions airflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ FROM puckel/docker-airflow:1.10.9

WORKDIR /usr/local/airflow

RUN mkdir python-dependencies
COPY requirements.txt .

COPY ./requirements.txt python-dependencies

RUN pip install -r python-dependencies/requirements.txt
RUN pip install -r requirements.txt

ENV PYTHONPATH "${PYTHONPATH}:/usr/local/airflow/dags/modules"
ENV EXECUTOR "Local"
ENV AIRFLOW__SCHEDULER__MIN_FILE_PROCESS_INTERVAL "15"
ENV AIRFLOW__WEBSERVER__WORKER_REFRESH_INTERVAL "450"
ENV AIRFLOW__WEBSERVER__WEB_SERVER_WORKER_TIMEOUT "150"

COPY ./run_unit_tests.sh /usr/local/airflow/dags
ENV AIRFLOW__WEBSERVER__WEB_SERVER_WORKER_TIMEOUT "150"
4 changes: 0 additions & 4 deletions airflow/run_unit_tests.sh

This file was deleted.

0 comments on commit 5714b41

Please sign in to comment.