https://github.com/opendevops-cn/codo-kerrigan
基于Tornado实现的一套配置中心,可基于分项目、环境管理配置,语法高亮、对比历史版本、快速回滚等,并提供Restful风格的API
https://github.com/opendevops-cn/codo-kerrigan
apollo confd config config-api config-server configuration-files
Last synced: 6 months ago
JSON representation
基于Tornado实现的一套配置中心,可基于分项目、环境管理配置,语法高亮、对比历史版本、快速回滚等,并提供Restful风格的API
- Host: GitHub
- URL: https://github.com/opendevops-cn/codo-kerrigan
- Owner: opendevops-cn
- License: gpl-3.0
- Created: 2019-01-22T05:36:01.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T23:14:25.000Z (over 1 year ago)
- Last Synced: 2025-03-24T06:54:38.805Z (7 months ago)
- Topics: apollo, confd, config, config-api, config-server, configuration-files
- Language: Python
- Homepage: http://www.opendevops.cn/
- Size: 78.1 KB
- Stars: 65
- Watchers: 8
- Forks: 73
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 配置中心
### 部署文档
#### 创建数据库
```sql
create
database `codo-kerrigan` default character set utf8mb4 collate utf8mb4_unicode_ci;
```- 初始化表结构 docker部署可以无视
```bash
python3 db_sync.py
```#### 修改配置
- 根据需要修改 `settings` 中的配置文件。
#### 编译镜像
```bash
docker build --build-arg SERVICE_NAME=kerrigan . -t codo-kerrigan-image
```#### Docker 启动
> 默认映射出了端口 8030
```bash
docker-compose up -d
```#### 启动后访问地址为 ` http://0.0.0.0:8030`
#### 测试
```bash
curl -I -X GET -m 10 -o /dev/null -s -w %{http_code} http://0.0.0.0:8030/are_you_ok/
### 返回200 就代表成功了
```### 注册网关
用户登录 URI 鉴权是通过网关来处理的。详情请参考 [API 网关](https://github.com/ss1917/api-gateway/blob/master/README.md)。
### 调用示例
- 已经封装成类,并提供了获取配置和生成配置文件的示例。具体参考脚本内容:
- `libs/get_config.py`
## License
本项目采用 [GPL v3.0](https://www.gnu.org/licenses/gpl-3.0.html) 许可。