Files
dags_scripts/README.md
T

28 lines
926 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# dags_scripts
Репозиторий для DAG-файлов Airflow.
## Как добавить свой DAG
1. Клонируйте репозиторий.
2. Положите файл `my_dag.py` в папку `dags/`.
3. Сделайте `git push`.
4. Через 1–5 минут DAG появится в Airflow UI.
## Правила
- Уникальные `dag_id`.
- Никаких секретов в коде — токены и пароли храните в Airflow Variables.
- Кастомные pip-пакеты согласовывайте — они запекаются в образ.
EOF
cat > AIRFLOW_SETUP.md <<'EOF'
# Настройка Airflow для dags_scripts
## git-sync
В docker-compose.yaml добавить сервис git-sync с REPO_URL на этот репозиторий
и dest /opt/airflow/dags.
## Variables
- migrations_repo_dir
- migrations_reports_dir
- migrations_git_token