Giter Club home page Giter Club logo

spb-ci's Introduction

自动化集成服务 -spb-ci

整合Docker、Jenkins、Gitlab,搭建企业持续集成服务,实现开发流程化、项目持续交付、自动化部署

优势

  • 服务器资源和配置使用 docker.volumes 添加进容器,实现资源文件可备份、方便迁移

  • 使用 dockerfiledocker-compose 配置服务器,使服务可复制,方便部署和操作

安装使用

把项目clone到本地

git clone [email protected]:zygeilit/spb-ci.git

使用Docker创建镜像以及启动服务器

docker-compose up --build -d

创建并复制Gitlab的Persion Token到/mounts/gitlab-private-token

./cmd-init-credential.sh

使用Gitlab的Runner Shared Token替换/var/mounts/gitlab-ci/runner-register.sh中的 --registration-token

docker exec -d gitlab-runner bash

~/ systemctl start dokcer
~/ /var/external-common-mounts/gitlab-ci/runner-register.sh
~/ gitlab-runner run

先决条件

系统中安装了 Docker、Docker Compose,具体的安装步骤可见 Docker官方文档

目标计划

  • spb-ci 基础之上,结合 spb-builder 提供的组件标准化方案,可实现PAAS公司组件生态圈

  • 持续构建服务、组件生态圈、页面可视化布局的技术模块封装发布,可实现PAAS体系前端技术栈的可复制

开发计划

计划和任务的拆分,可见 Projects

不足

  • Gitlab-runner服务器使用centos7服务器(权限BUG),目前无法自动启动docker服务和runner服务,需要手动开启
  • gitlab-runner register自动创建还未实现,需要手动注册
  • Giltab和Jenkins服务器之间的SSH配置还未实现自动化,需要启动服务后,调用./init.sh脚本

BUG

Gitlab Runner 执行 Pipeline 任务出错:

ERROR: Job failed (system failure): Error response from daemon: error creating aufs mount to /var/lib/docker/aufs/mnt/(.*?)-init: invalid argument

Jenkins 服务器,自动注册Credential异常

线上服务

使用了阿里云的云服务器,网站正在备案中 www.zygci.com

可先使用IP地址访问:39.104.66.206

Gitlab 服务器端口: 5000
Jenkins服务器端口: 5002
最高权限账号均为: root:12345678

spb-ci's People

Contributors

zygeilit avatar

Watchers

zhanglei avatar  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.