From 71b92a8ee667075e1c69015e7f785fd507b876db Mon Sep 17 00:00:00 2001 From: cleverCat Date: Wed, 14 Nov 2018 10:54:20 +0300 Subject: [PATCH] fix start airflow1.9 --- .travis.yml | 1 + tests/airflow1.9-py3/airflow/build/Dockerfile | 3 +-- tests/airflow1.9-py3/docker-compose.yml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5fc7e83..886c18b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,5 +26,6 @@ script: # Test Airflow 1.9 with Python 3 - cd ${TRAVIS_BUILD_DIR}/tests/airflow1.9-py3 && docker-compose up -d + - chmod -R 777 ${TRAVIS_BUILD_DIR}/tests/airflow1.9-py3/airflow/logs - ${TRAVIS_BUILD_DIR}/tests/${INTEGRATION_TEST_SCRIPT} - docker-compose down diff --git a/tests/airflow1.9-py3/airflow/build/Dockerfile b/tests/airflow1.9-py3/airflow/build/Dockerfile index 8341b50..0c0f864 100644 --- a/tests/airflow1.9-py3/airflow/build/Dockerfile +++ b/tests/airflow1.9-py3/airflow/build/Dockerfile @@ -4,5 +4,4 @@ USER root RUN pip3 install prometheus_client -# Needed to write to mounted directory with proper permissions -USER ${HOST_USER_ID} +USER airflow diff --git a/tests/airflow1.9-py3/docker-compose.yml b/tests/airflow1.9-py3/docker-compose.yml index 8ccf3b6..b655214 100644 --- a/tests/airflow1.9-py3/docker-compose.yml +++ b/tests/airflow1.9-py3/docker-compose.yml @@ -24,7 +24,6 @@ services: - POSTGRES_USER=airflow - POSTGRES_PASSWORD=airflowpass - POSTGRES_DB=airflow - - HOST_USER_ID=$UID # need to write to mounted files volumes: - ../dags:/usr/local/airflow/dags - ../..:/usr/local/airflow/plugins/airflow-exporter-0.000