blob: c40e9faa3719a231fc6b816d9c08496bf2b509ef [file]
# 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.
---
services:
airflow:
stdin_open: true # docker run -i
tty: true # docker run -t
environment:
- AIRFLOW__CORE__PLUGINS_FOLDER=/files/plugins
# We only mount tests folder
volumes:
- ../../../.bash_aliases:/root/.bash_aliases:cached
- ../../../.bash_history:/root/.bash_history:cached
- ../../../.inputrc:/root/.inputrc:cached
# Remove airflow sources from container
- ../../../empty:/opt/airflow/airflow-core/src
# But keep airflow/__init__.py to make hatchling happy when building empty package
- /dev/null:/opt/airflow/airflow-core/src/airflow/__init__.py
# Remove task-sdk sources from container
- ../../../empty:/opt/airflow/task-sdk/src
# But keep task-sdk/a__init__.py to make hatchling happy when building empty package
- /dev/null:/opt/airflow/task-sdk/src/airflow/sdk/__init__.py
- ../../../devel-common:/opt/airflow/devel-common
# And keep tests
- ../../../airflow-core/tests/:/opt/airflow/airflow-core/tests:cached
# Mount providers to make sure that we have the latest providers - both tests and sources
- ../../../providers/:/opt/airflow/providers:cached
# and entrypoint and in_container scripts for testing
- ../../../scripts/docker/entrypoint_ci.sh:/entrypoint
- ../../../scripts/in_container/:/opt/airflow/scripts/in_container