Coder Social home page Coder Social logo

opendevops-cn / codo-kerrigan Goto Github PK

View Code? Open in Web Editor NEW
62.0 9.0 72.0 80 KB

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

Home Page: http://www.opendevops.cn/

License: GNU General Public License v3.0

Dockerfile 1.21% Python 98.58% Shell 0.21%
config confd apollo config-server configuration-files config-api

codo-kerrigan's Introduction

配置中心

部署文档

创建数据库

create
database `codo-kerrigan` default character set utf8mb4 collate utf8mb4_unicode_ci;
  • 初始化表结构 docker部署可以无视
python3 db_sync.py

修改配置

  • 根据需要修改 settings 中的配置文件。

编译镜像

docker build --build-arg SERVICE_NAME=kerrigan . -t codo-kerrigan-image

Docker 启动

默认映射出了端口 8030

docker-compose up -d

启动后访问地址为 http://0.0.0.0:8030

测试

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 网关

调用示例

  • 已经封装成类,并提供了获取配置和生成配置文件的示例。具体参考脚本内容:

    • libs/get_config.py

License

本项目采用 GPL v3.0 许可。

codo-kerrigan's People

Contributors

ss1917 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codo-kerrigan's Issues

我想通过api进行post配置,提示无授权

我想通过post提交配置,但是按照auth_key的方式,提示Sorry, you have no permission. Please contact the administrator
,不太理解这个返回是谁做的,我需要怎么样才能post

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.