Giter VIP home page Giter VIP logo

kerrigan's Introduction

配置中心

部署文档

创建数据库

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.

kerrigan's People

Watchers

 avatar

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.