Code used for Datafest Africa workshop on Airflow
To set up this project, you'll need to have the following installed on your Machine:
- Python (>= 3.7 | can be installed here)
- Docker (can be installed here)
- Docker Compose (>= v1.29.1 | can be installed here)
- Git
- Clone the repository
- Create a virtual environment. See here
- Install requirements
pip install -r requirements.txt
- Create .env file and update as follows:
ENV=dev
AIRFLOW__CORE__FERNET_KEY=
AIRFLOW_UID=
To get fernet key, see here To get AIRFLOW_UID, for MacOS/Linux users, run the following in your terminal and use the value
AIRFLOW_UID=$(id -u)
echo $AIRFLOW_UID
- Run setup script:
chmod a+x ./bin/run-airflow.sh
./bin/run-airflow.sh