To run your dag do this:
- Build (
docker build -t run_local_airflow .
) - Run container with mount and port forward:
docker run -p $HOST_PORT:8080 \
-v $HOST_DAGS_PATH:/home/user0/dags \
-it run_local_airflow
OPTIONAL[requirements.txt]
# provide this to pip install additional modules for your dag
# be sure that requirements.txt is in $HOST_DAGS_PATH/
- Go to
localhost:$HOST_PORT
(user_name and pass isuser
) - You will see your dags there.