Docker
Docker-Compose
Python>=3.7
Virtualenv
git clone https://github.com/akomaragiri/AirflowDocker.git
cd AirflowDocker
mkdir input_files
mkdir output_filesActivate Python Virtual Env:
** For Unix Based Systems:
virtualenv -p python3.7 venv && source venv/bin/activate
** For Windows:
virtualenv -p python3.7 venv && venv/scripts/activatepython setup.py sdist
docker build --tag airflow_docker:1.0 .
docker-compose -f docker-compose-CeleryExecutor.yml up -dOpen Airflow UI: http://<server_ip>:8080/admin/
Toggle switch to enable/start the DAG
#####Happy Path:
Copy a sample text (.TXT) file to input_files directory
Trigger DAG
Check output_files directory once DAG has finished
#####Un-happy Path:
Copy a sample non TXT file to input_files directory
Trigger DAG
Check output_files directory once DAG has finished
docker-compose -f docker-compose-CeleryExecutor.yml stopdocker-compose -f docker-compose-CeleryExecutor.yml up -d --scale worker=5