Skip to content

Commit

Permalink
Fix Airflow1.9 Log Path Mount
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrosquall committed Oct 16, 2018
1 parent f25324c commit 163b1db
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sudo: required
sudo: false
# sudo: required

services:
- docker
Expand All @@ -16,8 +17,12 @@ before_install:
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- chmod +x tests/test_metrics_up.sh
# Let tests write over their own directory


script:
# Grant access to write logs
- chown -R airflow:airflow ${TRAVIS_BUILD_DIR}/tests
# Test Airflow 1.8 with Python 2
# - cd tests/airflow1.8-py2 && docker-compose up -d
# - ${TRAVIS_BUILD_DIR}/tests/${INTEGRATION_TEST_SCRIPT}
Expand Down
3 changes: 3 additions & 0 deletions tests/airflow1.9-py3/airflow/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ USER root

RUN pip3 install prometheus_client

RUN mkdir -p /usr/local/airflow/logs && chown airflow -R /usr/local/airflow/logs
# RUN chown -R airflow /usr/local/airflow

USER airflow
3 changes: 3 additions & 0 deletions tests/airflow1.9-py3/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ services:
ports:
- "8080:8080"
command: webserver

volumes:
airflow_logs:

0 comments on commit 163b1db

Please sign in to comment.