Airflow Docker with pip installation using requirement.txt and using DAG from cloned repository
- Install Docker Community Edition (CE).
- Install Docker Compose v1.29.1 or newer.
Note: Older versions of docker-compose do not support all the features required by the Airflow docker-compose.yaml file, so please ensure that your version meets the minimum requirements.
- Clone the Airflow Docker repository.
- Open the terminal inside the working directory of Airflow Docker.
- Clone the pws-dag-operation repository, please change volume section in docker compose file same as folder your dag file in my case
pws-dag-operation
. - Run the following command:
docker build . --tag extending_airflow:latest
. - Run
docker-compose up
.
- Open requirement.txt
- add library
- run Installation step 4 and 5
- Open
localhost:8080
in your web browser. - Login using the following credentials:
- Username: airflow
- Password: airflow
inside docker-compose.yaml change AIRFLOW__CORE__LOAD_EXAMPLES: 'false'
If you encounter any errors during installation, please contact me or raise issue for assistance.