All Projects → opendevops-cn → kerrigan

opendevops-cn / kerrigan

Licence: GPL-3.0 license
基于Tornado实现的一套配置中心,可基于分项目、环境管理配置,语法高亮、对比历史版本、快速回滚等,并提供Restful风格的API

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to kerrigan

neovim-config
Modern NeoVim config for IDE-like development
Stars: ✭ 89 (+56.14%)
Mutual labels:  config, configuration-files
parse it
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
Stars: ✭ 86 (+50.88%)
Mutual labels:  config, configuration-files
i3
Archivos de configuraciones de i3
Stars: ✭ 32 (-43.86%)
Mutual labels:  config, configuration-files
ConfigAPI
GSON-like ORM for Bukkit YAML API's
Stars: ✭ 23 (-59.65%)
Mutual labels:  config, config-api
config-parser
A slim, fully managed C# library for reading/writing .ini, .conf, .cfg etc configuration files.
Stars: ✭ 67 (+17.54%)
Mutual labels:  config, configuration-files
rubric
Linter Config Initializer for Python
Stars: ✭ 21 (-63.16%)
Mutual labels:  config, configuration-files
climatecontrol
Python library for loading settings and config data from files and environment variables
Stars: ✭ 20 (-64.91%)
Mutual labels:  config, configuration-files
goconf
Configuration loader in Go
Stars: ✭ 23 (-59.65%)
Mutual labels:  config, configuration-files
DazzleConf
Incredible configuration library
Stars: ✭ 34 (-40.35%)
Mutual labels:  config, configuration-files
nvim-config
My neovim config
Stars: ✭ 63 (+10.53%)
Mutual labels:  config, configuration-files
alda
A boilerplate for React isomorphic aplication with Material Design
Stars: ✭ 16 (-71.93%)
Mutual labels:  apollo
stumpwm-config
My configuration files for StumpWM
Stars: ✭ 62 (+8.77%)
Mutual labels:  config
ApexConfigs
Apex Legends configs for a competitve player
Stars: ✭ 52 (-8.77%)
Mutual labels:  config
uconfig
Lightweight, zero-dependency, and extendable configuration management library for Go
Stars: ✭ 53 (-7.02%)
Mutual labels:  config
redwood
The App Framework for Startups
Stars: ✭ 15,079 (+26354.39%)
Mutual labels:  apollo
Tieba-Birthday-Spider
百度贴吧生日爬虫,可抓取贴吧内吧友生日,并且在对应日期自动发送祝福
Stars: ✭ 28 (-50.88%)
Mutual labels:  config
apollo-cache-instorage
Apollo Cache implementation that facilitates locally storing resources
Stars: ✭ 98 (+71.93%)
Mutual labels:  apollo
erxes-widgets
Deprecated: Repo is now integrated with erxes/erxes
Stars: ✭ 26 (-54.39%)
Mutual labels:  apollo
superconfig
Access environment variables. Also includes presence validation, type coercion and default values.
Stars: ✭ 33 (-42.11%)
Mutual labels:  config
nvim
❤️ A neovim config repo.
Stars: ✭ 33 (-42.11%)
Mutual labels:  config

配置中心

部署文档

创建数据库

create database `codo_kerrigan` default character set utf8mb4 collate utf8mb4_unicode_ci;
  • 初始化表结构
python3 /var/www/kerrigan/db_sync.py

修改配置

  • 对settings 里面的配置文件进行修改
  • 修改 doc/nginx_ops.conf 的server_name 例如 改为 kerrigan.opendevops.cn ,当然你也可以直接用IP
  • 修改 doc/supervisor_ops.conf 内容来控制进程数量

编译镜像

docker build . -t kerrigan_image

docker 启动

默认映射出了8030端口

docker-compose up -d

启动后访问地址为 kerrigan.opendevops.cn:8030

测试

curl -I -X GET -m  10 -o /dev/null -s -w %{http_code}  http://kerrigan.opendevops.cn:8030/are_you_ok/
### 返回200 就代表成功了

注册网关 用户登录 URI鉴权是通过网关来处理的。

参考api网关

调用示例

  • 已经封装成类, 并写了获取配置的示例,和生成配置文件示例,具体参考脚本内容
  • libs/get_config.py

License

Everything is GPL v3.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].