centraldogma git 镜像配置

2021/8/12 23:06:47

本文主要是介绍centraldogma git 镜像配置,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

git 镜像的场景主要是将git repo 同步到centraldogma 中,配置还是比较简单的,主要是关于定时任务,centraldogma repo 关联,账户信息

参考运行

  • centraldogma 环境
version: "3"
services: 
    app:
        image: line/centraldogma
        ports: 
        - "36462:36462"
  • 配置镜像
    主要在项目中的meta repo 添加/mirrors.json 信息
    参考

 

 

配置内容

 
[
  {
    "type": "single",
    "enabled": true,
    "schedule": "0 * * * * ?",
    "direction": "REMOTE_TO_LOCAL",
    "localRepo": "demo",
    "localPath": "/",
    "remoteUri": "git+http://<git-repo>"
  }
]
  • 效果

 

 

说明

以上没有包含账户配置的,具体可以参考官方文档,同时我们基于镜像模式可以实现强大的配置读取,监听。。。

参考资料

https://line.github.io/centraldogma/mirroring.html



这篇关于centraldogma git 镜像配置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程