{"id":20630557,"url":"https://github.com/opendevops-cn/codo-kerrigan","last_synced_at":"2026-03-07T12:35:28.055Z","repository":{"id":97078894,"uuid":"166933557","full_name":"opendevops-cn/codo-kerrigan","owner":"opendevops-cn","description":"基于Tornado实现的一套配置中心，可基于分项目、环境管理配置，语法高亮、对比历史版本、快速回滚等，并提供Restful风格的API","archived":false,"fork":false,"pushed_at":"2024-06-06T23:14:25.000Z","size":80,"stargazers_count":66,"open_issues_count":4,"forks_count":72,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-06-19T07:04:43.617Z","etag":null,"topics":["apollo","confd","config","config-api","config-server","configuration-files"],"latest_commit_sha":null,"homepage":"http://www.opendevops.cn/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opendevops-cn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-22T05:36:01.000Z","updated_at":"2025-06-07T04:48:17.000Z","dependencies_parsed_at":"2024-04-30T10:38:40.072Z","dependency_job_id":"44a96a12-f684-4cc7-93b6-d1429257f34a","html_url":"https://github.com/opendevops-cn/codo-kerrigan","commit_stats":null,"previous_names":["opendevops-cn/codo-kerrigan","opendevops-cn/kerrigan"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/opendevops-cn/codo-kerrigan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendevops-cn%2Fcodo-kerrigan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendevops-cn%2Fcodo-kerrigan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendevops-cn%2Fcodo-kerrigan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendevops-cn%2Fcodo-kerrigan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opendevops-cn","download_url":"https://codeload.github.com/opendevops-cn/codo-kerrigan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendevops-cn%2Fcodo-kerrigan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30213190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T12:15:00.571Z","status":"ssl_error","status_checked_at":"2026-03-07T12:15:00.217Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apollo","confd","config","config-api","config-server","configuration-files"],"created_at":"2024-11-16T14:08:26.293Z","updated_at":"2026-03-07T12:35:28.003Z","avatar_url":"https://github.com/opendevops-cn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 配置中心\n\n### 部署文档\n\n#### 创建数据库\n\n```sql\ncreate\ndatabase `codo-kerrigan` default character set utf8mb4 collate utf8mb4_unicode_ci;\n```\n\n- 初始化表结构 docker部署可以无视\n\n```bash\npython3 db_sync.py\n```\n\n#### 修改配置\n\n- 根据需要修改 `settings` 中的配置文件。\n\n#### 编译镜像\n\n```bash\ndocker build --build-arg SERVICE_NAME=kerrigan . -t codo-kerrigan-image\n```\n\n#### Docker 启动\n\n\u003e 默认映射出了端口 8030\n\n```bash\ndocker-compose up -d\n```\n\n#### 启动后访问地址为 ` http://0.0.0.0:8030`\n\n#### 测试\n\n```bash\ncurl -I -X GET -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:8030/are_you_ok/\n### 返回200 就代表成功了\n```\n\n### 注册网关\n\n用户登录 URI 鉴权是通过网关来处理的。详情请参考 [API 网关](https://github.com/ss1917/api-gateway/blob/master/README.md)。\n\n### 调用示例\n\n- 已经封装成类，并提供了获取配置和生成配置文件的示例。具体参考脚本内容：\n\n    - `libs/get_config.py`\n\n## License\n\n本项目采用 [GPL v3.0](https://www.gnu.org/licenses/gpl-3.0.html) 许可。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendevops-cn%2Fcodo-kerrigan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopendevops-cn%2Fcodo-kerrigan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendevops-cn%2Fcodo-kerrigan/lists"}