airflow - 如何通过 Git 挂载 Airflow DAG?
问题描述
发现在airflow.cfg 中有可能“通过Git 安装DAG”:
# Git credentials and repository for DAGs mounted via Git (mutually exclusive with volume claim)
git_repo = https://username@bitbucket.org/repo.git
git_branch = master
git_subpath =
# Use git_user and git_password for user authentication or git_ssh_key_secret_name and git_ssh_key_secret_key
# for SSH authentication
git_user = username
git_password = pass
git_sync_root = /git
git_sync_dest = repo
# Mount point of the volume if git-sync is being used.
# i.e. /home/user/airflow/dags
git_dags_folder_mount_point = /home/user/airflow/dags
无法找到有关此的任何文档。
我是否理解正确,只需推送到指定的分支,我就可以使用 Git 存储库将我的 DAG 部署到 Airflow 生产服务器?
无法进行该操作,希望有任何想法。
解决方案
推荐阅读
- php - 从 MYSQL 查询临时存储变量
- image - scipy.misc 图像函数(例如 imread、imresize、imsave、imshow 等)上的 AttributeError、ImportError
- c++ - 在 macOS 上的另一个窗口中打开小部件
- laravel - 无论排序如何,Laravel Eloquent 都会将所有返回的列值为 0 的行放在最后
- python - 仅当 DataFrame 中存在一行时,如何在 Pandas 中删除一行
- git - 如何设置 git config 以使用域的特定密钥?
- ruby - 红宝石。读取简单文件后的 NUL 字符
- django - Django - 上传时压缩音频文件
- speculative-execution - 英特尔 CPU 上的推测执行是否可能导致 EXC_BAD_INSTRUCTION (SIGILL)
- python - 文件 ”
",第 1006 行,在 _gcd_import 错误中