CICD Platform Course
GitLab + Nexus + Harbor + Jenkins · production-grade BladeX deployment
- Battle-tested in production
- K8s + Docker dual setup
- Reusable pipeline scripts
- Free permanent updates
Overview
BladeX is a strong microservice architecture and platform born out of the open-source community, but mastering its development, deployment and operations requires substantial experience across microservices, system operations and architecture. This "BladeX Platform Deployment Reference" exists to make the on-ramp dramatically easier — fewer detours, fewer landmines — for both newcomers and seasoned engineers.
Every command was verified hands-on against a real production environment, so the recipes can be copy-pasted and executed directly. The reference OS is CentOS 7.5 (adapt as needed for other Linux distributions). Readers should bring working knowledge of Linux, shell scripting, Docker containers and Kubernetes clusters.
Jenkins sits at the heart of the deployment architecture, and the paired Pipeline + shell scripts are the heart of the heart: a single Jenkins build pulls code from GitLab, compiles Maven/frontend, builds the Docker image, pushes it to a Harbor private registry, then remotely refreshes the target Docker host or K8s cluster, auto-cleans expired images, and switches in a bkcopy backup orchestration for zero-downtime upgrades — all in one chain.
Modules
- 01
BladeX-jenkins service install
GitLab / Nexus / Docker-Harbor / Jenkins install · BladeX build + push jars to Nexus · BladeX docker build + push to Harbor · Multi-flavor OpenJDK base images (jdk8/17 + sapjco 2.x/3.x + wkhtmltopdf)
- 02
Jenkins pipeline scripts
Deployment helper scripts · Pipeline pip scripts (tag / build image / restart image / build web / restart web / dynamic replace / backup service / expired-image cleanup) · Jenkins auto-cleanup of Harbor + Docker + K8s images
- 03
K8s production deployment
K8s cluster install · NFS · kube-dns / dashboard / Traefik 2.9.4 · Nacos cluster · ELK cluster · Minio cluster · Redis cluster · MongoDB · MySQL master-slave + Mycat · RocketMQ cluster · Container logs to ELK (Log-pilot) · Prometheus monitoring · BladeX microservices · Nginx load balancing
- 04
Docker dev-test deployment
Docker host install · Nacos · ELK · Minio · Redis · MongoDB · Independent log DB · MySQL master-slave + Mycat test · BladeX service orchestration · Nginx reverse-proxy
Archive contents
- 1-BladeX系统架构图.png
- 2-BladeX部署架构图.png
- 3.BladeX部署环境服务器列表.txt
- BladeX-jenkinsAuto-deploy services install
- 01.gitlab安装步骤.txt
- 01-1.gitlab自动备份task.sh
- 02.nexus-安装配置.txt
- 03.docker-harbor安装配置.txt
- 04.jenkins安装配置.txt
- 05.BladeX编译打包并推送jar包到nexus私服.txt
- 06.BladeX-Biz本地编译打包.txt
- 07.bladex项目编译docker镜像并推送harbor私服(仅测试).txt
- 08.SonarQube-docker代码审查(参考).txt
- 09.推送公共服务的docker镜像到本地私服.txt
- 10.制作openjdk8-openj9-sapjco2.X支持的基础镜像.txt
- 10-1.制作openjdk8-openj9-sapjco3020支持的基础镜像.txt
- 10-2.制作openjdk-8u252-jre-sapjco2.X-wkhtmltopdf支持的基础镜像.txt
- jenkins部署配置Pipeline configuration & scripts
- 1.jenkins部署工具脚本.txt
- 2.自动同步配置文件中为最新的容器镜像.txt
- 3.jenkins部署-BladeX服务及前端(saber-ui)管道pip脚本.txt
- 4.jenkins自动清理过期的docker镜像.txt
- pip_scriptJenkins pipeline shell scripts
- pip_create_tagfile.sh
- pip_build_image.sh
- pip_restart_image.sh
- pip_build_web.sh
- pip_restart_web.sh
- dynamic_replace_image.sh
- dynamic_replace_docker.sh
- bkcopy_service.sh
- delete_none_image.sh
- autoclear_harbor_expired_image.sh
- autoclear_k8s_expired_image.sh
- clear_local_expired_image.sh
- clear_projects_list.txt
- k8slog.sh
- scp_k8slog_toall.sh
- create-command-link.sh
- 拉取合并最新代码Pull / merge upstream BladeX upgrade flow
- 0.BladeX平台代码升级步骤.txt
- 1.git_fetch_upstream.txt
- 2.git_merge.txt
- 3.git_push_origin.txt
- 4.git日志模板.pull-merge-push.log
- 5.git迁移到本地gitlab.txt
- 6.BladeX远程私服地址和本地私服地址列表.txt
- 代码合并日志
- 升级切换脚本
- BladeX-k8s-deployProduction environment reference
- 01.k8s集群安装配置.txt
- 02-1.k8s集群增删数据节点.txt
- 02.NFS服务器安装配置参考.txt
- 03.k8s组件-kube-dns.txt
- 04.k8s组件-kube-dashboard.txt
- 05.k8s组件-traefik2.9.4-ingress.txt
- 06.nacos-k8s集群安装配置.txt
- 07.elk-k8s集群安装配置.txt
- 08.minio-k8s集群安装配置.txt
- 08.minio-docker集群安装配置.txt
- 09.redis-docker集群安装配置.txt
- 10.mongoDB-docker集群安装配置.txt
- 10.mongoDB-docker单机安装配置.txt
- 11.BladeX独立日志库-k8s安装配置.txt
- 12-1.mysql-master主库安装配置.txt
- 12-2.mysql-salve从库安装配置.txt
- 12-3.mysql-mycat-k8s安装配置.txt
- 13.BladeX服务-k8s部署配置.txt
- 14.BladeX服务-k8s服务启停及访问地址.txt
- 15.jira-k8s安装配置.txt
- 16.k8s容器日志入库(Log-pilot)配置.txt
- 17.k8s集群监控-prometheus配置.txt
- 18.RocketMQ-k8s消息集群安装配置.txt
- 19.mydemo-k8s自开发服务部署初始化.txt
- 20.blade-srm自开发服务部署配置(mydemo)-prod.txt
- 21.k8s-nginx访问日志每日自动清零.txt
- nginx-proxy
- deploy-reference
- etc-kubeasz-v3.4.0
- BladeX-docker-deployDev / test environment reference
- 1.docker服务器安装配置.txt
- 2.BladeX-docker部署准备.txt
- 3.nacos-docker集群安装配置.txt
- 4.elk-docker集群安装配置.txt
- 5.minio-docker单机版安装配置.txt
- 6.redis-docker单机版安装配置.txt
- 7.mongoDB-docker单机版安装配置.txt
- 8.BladeX平台独立日志库-docker安装配置.txt
- 9.mysql主从-mycat测试库安装配置.txt
- 10.docker部署工具脚本.txt
- 11.bladex-docker部署配置.txt
- 12.BladeX-docker服务启停及访问地址.txt
- nginx-proxy
- deploy-reference
Key features
- Full GitLab + Nexus + Harbor + Jenkins deployment docs
- Jenkins Pipeline + Shell one-click automation scripts
- K8s cluster deploy: Nacos / ELK / Minio / Redis / Mongo / MySQL
- Docker single-host: complete dev-test environment
- BladeX microservice build + image push to Harbor private registry
- Auto image cleanup + backup orchestration (zero-downtime)
- Local code upgrade / pull / merge workflows
- 1 Q&A group seat + free permanent updates
Use cases
- 01
Pull the latest source for a specified branch from GitLab — Jenkins immediately fetches both the front-end UI and back-end service source.
- 02
Compile the project (front-end UI → bundled JS, back-end service → jar); the back-end build auto-resolves dependency jars from the Nexus private registry.
- 03
Generate the image tag, build the Docker image and push it automatically to the local Harbor private registry.
- 04
Remotely log into the target Docker host or K8s cluster, pull the new image, restart the service and rewrite the image tag in the Docker / K8s orchestration files.
- 05
A Jenkins nightly cron sweeps expired microservice images out of Harbor, the Docker host and the K8s cluster — keeping storage from ballooning.
- 06
Production toggles on the bkcopy backup-service orchestration so callers stay served throughout deployment — zero-downtime upgrades.
- 07
A production hot-standby is mirrored into the staging environment, keeping live service uninterrupted even when upgrading the BladeX framework underneath.
Specifications
- Tech stack
- GitLab · Nexus · Harbor · Jenkins · Kubernetes · Docker · Shell
- License
- Commercial
- Delivery
- "BladeX Deployment Reference.zip" archive
- Support
- 1 Q&A group seat · free permanent updates
Invoicing
A 1% VAT regular electronic invoice is issued within 15 business days after payment. Reach out to sales to update the title or tax ID.
