7 Star 7 Fork 8

暴走皮皮虾 / bzppx-agent-codepub

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT
                    __                     __                                     __
  _____ ____   ____/ /___   ____   __  __ / /_       ____    ____   ___   ____   / /_
 / ___// __ \ / __  // _ \ / __ \ / / / // __ \     / __ \  / __ \ / _ \ / __ \ / __/
/ /__ / /_/ // /_/ //  __// /_/ // /_/ // /_/ / -- / /_/ / / /_/ //  __// / / // /_
\___/ \____/ \__,_/ \___ / .___/ \__,_//_.___/     \__/\_\ \___,/ \___//_/ /_/ \__/
                        /_/                               /____/

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 = 102400000
MaxCount = 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

MIT License Copyright (c) 2018 暴走皮皮虾 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

codepub-agent 是 codepub 代码发布系统的 agent 部署程序,需配合 codepub 后台使用 展开 收起
Go
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/bzppx/bzppx-agent-codepub.git
git@gitee.com:bzppx/bzppx-agent-codepub.git
bzppx
bzppx-agent-codepub
bzppx-agent-codepub
master

搜索帮助

14c37bed 8189591 565d56ea 8189591