In this repo you would get and airflow local environment with dbt (0.21.1) installed and ready to go
-
Install Docker
-
Install Docker Compose
-
On the .env add the AIRFLOW_UID ( to get this value execute echo -e "AIRFLOW_UID=$(id -u)" on terminal)
-
Add .env variables that are needed
-
Run docker-compose build, to build airflow image
-
Run docker-compose up airflow-init, init airflow postgress db
-
Run docker-compose up, up all airflow services
Add your dbt project into ./dbt folder
Requirements:
-
dbt version supported == 0.21.
-
Should include a ./dbt/profiles.yml to referrer it on airflow dags
-
There is a .env file with a few variables that would be required to set it up the dbt profile