• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

bzppx-agent-codepub: codepub-agent 是 codepub 代码发布系统的 agent 部署程序,需 ...

原作者: [db:作者] 来自: 网络 收藏 邀请
                    __                     __                                     __  _____ ____   ____/ /___   ____   __  __ / /_       ____    ____   ___   ____   / /_ / ___// __ \ / __  // _ \ / __ \ / / / // __ \     / __ \  / __ \ / _ \ / __ \ / __// /__ / /_/ // /_/ //  __// /_/ // /_/ // /_/ / -- / /_/ / / /_/ //  __// / / // /_\___/ \____/ \__,_/ \___ / .___/ \__,_//_.___/     \__/\_\ \___,/ \___//_/ /_/ \__/                        /_/                               /____/

stable license download_count download

前言

codepub-agent 是 codepub 代码发布系统的 agent 部署程序,需配合 codepub 后台使用地址:https://github.com/bzppx/bzppx-codepub

安装

1. 添加节点

请先在 codepub 后台添加节点

2. 下载二进制程序

打开 https://github.com/bzppx/bzppx-agent-codepub/releases 找到对应平台的版本下载编译好的压缩包

# 创建目录$ mkdir codepub-agent$ cd codepub-agent# 以 linux amd64 为例,下载版本 0.8 压缩包$ wget https://github.com/bzppx/bzppx-agent-codepub/releases/download/v0.8/bzppx-agent-codepub-linux-amd64.tar.gz# 解压到当前目录$ tar -zxvf bzppx-agent-codepub-linux-amd64.tar.gz

3. 配置 agent

打开 config.toml 配置文件

[access]token = "53d86cc809090ee047cf343fd787888e" # codepub 后台添加节点后生成的 token[rpc]listen = ":9091" # codepub 后台添加节点的 port[cert]key_file = "cert/server.key"crt_file = "cert/server.pem"[log]level = ["info","error","debug"]dir = "log"FileMaxSize = 102400000MaxCount = 3

4. 后台启动 agent

nohup ./bzppx-agent-codepub --conf config.toml &

开发

环境要求:go 1.8

$ git clone https://github.com/bzppx/bzppx-agent-codepub.git$ cd bzppx-agent-codepub$ go build ./

反馈

欢迎提交意见和代码 https://github.com/bzppx/bzppx-agent-codepub/issues官方交流 QQ 群:547481058

License

MIT

谢谢

Create By BZPPX


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap