potiuk commented on a change in pull request #4938: [AIRFLOW-4117] Multi-staging Image - Travis CI tests [Step 3/3] URL: https://github.com/apache/airflow/pull/4938#discussion_r303211446
########## File path: scripts/ci/docker-compose-local.yml ########## @@ -0,0 +1,42 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +version: "2.2" +services: + airflow-testing: + volumes: + - ../../airflow:/opt/airflow/airflow + - ../../setup.cfg:/opt/airflow/setup.cfg + - ../../setup.py:/opt/airflow/setup.py + - ../../dags:/opt/airflow/dags + - ../../dev:/opt/airflow/dev + - ../../docs:/opt/airflow/docs + - ../../hooks:/opt/airflow/hooks + - ../../scripts:/opt/airflow/scripts + - ../../tests:/opt/airflow/tests + - ../../.coveragerc:/opt/airflow/.coveragerc + - ../../LICENSE:/opt/airflow/LICENSE + - ../../MANIFEST.in:/opt/airflow/MANIFEST.in + - ../../NOTICE:/opt/airflow/NOTICE + - ../../CHANGELOG.txt:/opt/airflow/CHANGELOG + - ../../.github:/opt/airflow/.github + - ../../.flake8:/opt/airflow/.flake8 + - ../../pylintrc:/opt/airflow/pylintrc + - ../../.rat-excludes:/opt/airflow/.rat-excludes + - ../../run-tests:/opt/airflow/run-tests + - ../../logs:/root/airflow/logs Review comment: Yeah. The main reason is that we hit an interesting problem during testing (wiht Stefan). One of the fields in the "airflow" dir after running `pip install -e .` is apache_airflow.egg-info. And the problem was when we removed werkzeug. Even if it was missing in setup.py, when you entered the docker environment the "host" apache_airflow.egg-info still contained werkzeug and running "airflow" binary failed. It was a kind of mind-blowing problem (no Werkzeug in any of the sources, docker file rebuild from scratch but still Werkzeug was there). I've added .mypy_cache indeed :). ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services