暴走皮皮虾之代码发布系统,是现代的持续集成发布系统,由后台管理系统和agent两部分组成,一个运行着的agent就是一个节点,本系统并不是造轮子,是"鸟枪"到"大炮"的创新,对"前朝遗老"的革命. 特点
安装1. codepub 安装打开 https://github.com/bzppx/bzppx-codepub/releases 找到对应平台的版本下载编译好的压缩包 # 创建目录 $ mkdir codepub $ cd codepub # 以 linux amd64 为例,下载版本 0.8 压缩包 $ wget https://github.com/bzppx/bzppx-codepub/releases/download/v0.8/bzppx-codepub-linux-amd64.tar.gz # 解压到当前目录 $ tar -zxvf bzppx-codepub-linux-amd64.tar.gz # 执行安装程序,默认端口为 8090,指定其他端口加参数 --port=8087 $ ./install/install # 浏览器访问 http://ip:8090 进入安装界面,完成安装配置 # Ctrl + C 停止 install 程序, 启动 codepub 管理后台 $ ./codepub --conf conf/codepub.conf 2. codepub-agent 安装请查看 https://github.com/bzppx/bzppx-agent-codepub 3. nginx 配置反向代理upstream frontends {
server 127.0.0.1:8088; # codepub 监听的ip:port
}
server {
listen 80;
server_name codepub.com www.codepub.com;
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://frontends;
}
# 静态资源交由nginx管理
location /static {
root /www/bzppx-codepub; # codepub 的根目录
expires 1d;
add_header Cache-Control public;
access_log off;
}
}同类软件对比
系统介绍1.用户功能
2.系统界面,先睹为快2.1 安装2.2 登录2.2 面板2.3 添加节点2.4 添加项目2.5 发布代码2.6 节点进度开发环境要求:go 1.8 $ git clone https://github.com/bzppx/bzppx-codepub.git $ cd bzppx-codepub $ go get ./... $ go build ./ 反馈欢迎提交意见和代码 https://github.com/bzppx/bzppx-codepub/issues LicenseMIT 谢谢Create By BZPPX |