项目
文章平均质量分 72
运维@小兵
技术改变世界
展开
-
浅谈CICD与项目实战
曾几何时,研发、测试、运维各自为战,如战国之群雄割据,各领风骚,直至CI/CD横空出世,纵横捭阖,四海归一,实现了“车同轨 书同文 行同伦”,将开发环境、测试环境、预发环境、生产环境聚于统一战线,上传下达,流水作业,一荣俱荣、一辱俱辱。一、什么是CI/CD1.CI(Continuous Integration,持续集成)图片来源:https://blog.csdn.net/csdnnews...原创 2020-03-25 18:40:30 · 5284 阅读 · 1 评论 -
第9集(GItlab+Jenkins+SonarQube+Docker+Harbor+Selenium实现CI/CD之Pipeline部署到测试环境)
实验效果:git push提交后自动触发,最终部署到测试环境一、Jenkins配置具体参考:Jenkins通过Tragger parameterized build on other projects插件实现一个项目之后触发我指定的其它项目1.webhook配置2.SonarQube配置3.build_image配置二、修改index.html的内容,上传gitlabecho ...原创 2020-03-24 17:34:00 · 753 阅读 · 0 评论 -
第8集(GItlab+Jenkins+SonarQube+Docker+Harbor+Selenium实现CI/CD之部署到生产环境)
一、在gitlab上创建项目deploy_lnmp二、在测试环境的机器操作1.将部署的目录打包tar zcvf lnmp_docker_V1.0.tgz install_lnmp/2.克隆deploy_lnmp项目,上传部署包到gitlabgit clone http://172.16.38.31/root/deploy_lnmp.gitcd deploy_lnmp/cp .....原创 2020-03-24 15:22:59 · 743 阅读 · 0 评论 -
第7集(GItlab+Jenkins+SonarQube+Docker+Harbor+Selenium实现CI/CD之模拟版本更新,在测试环境验证)
一、修改index.html内容cd /root/dev_lnmp/dockerfiles/nginxecho "20200324_V1.1" > index.html二、上传gitlabgit add index.htmlgit commit -m "update index.html"git push三、webhook已被触发四、由于没有改动jar包,SonarQu...原创 2020-03-24 13:39:03 · 517 阅读 · 0 评论 -
第6集(GItlab+Jenkins+SonarQube+Docker+Harbor+Selenium实现CI/CD之部署到测试环境,Selenium自动测试)
一、准备一键式部署包目录结构如下1.部署脚本autoinstall.sh#!/bin/bash#AUTHOR:anqixiang#DATE:2020-03-23#MODIFY:#FUNCTION:docker-compose部署LNMP#VERSION:V1.0#SYSTEM:Ubuntu 16 RedHat7.2/7.4 CentOS7.2/7.4 SUSE12 SP3...原创 2020-03-24 11:50:50 · 1341 阅读 · 0 评论 -
第5集(GItlab+Jenkins+SonarQube+Docker+Harbor+Selenium实现CI/CD之build image)
一、Jenkins配置1.在Jenkins那台机器进行构建,添加登录Jenkins服务器的凭据2.添加SSH remote hosts3.创建item二、Harbor查看三、Gitlab查看原创 2020-03-23 13:34:02 · 668 阅读 · 0 评论 -
第3集(GItlab+Jenkins+SonarQube+Docker+Harbor+Selenium实现CI/CD之WebHook触发mvn打包)
1.Jenkins配置webhook具体步骤:jenkins+gitlab+webhook自动触发代码构建插件安装失败解决方法2.创建maven构建项目(这里并不去执行mvn clean,只是测试WebHook功能)解决gitlab添加webhook提示Url is blocked: Requests to the local network are not allowed的问题...原创 2020-03-21 08:58:39 · 778 阅读 · 0 评论 -
第4集(GItlab+Jenkins+SonarQube+Docker+Harbor+Selenium实现CI/CD之SonarQube实现CodeReview)
PS:安装插件及相关参数说明一、Jenkins上配置参数1.登录SonarQube生成Server authentication token,用于Jenkins添加SonarQube凭据2.添加SonarQube凭据3.配置SonarQube server4.配置SonarQube Scanner二、添加gitlab凭据三、创建item1.从gitlab上...原创 2020-03-20 21:37:51 · 764 阅读 · 0 评论 -
第2集(GItlab+Jenkins+SonarQube+Docker+Harbor+Selenium实现CI/CD之LNMP项目准备)
在gitlab上创建项目dev_lnmp创建项目在jenkins机器上克隆该项目sudo -iyum -y install gitgit config --global user.name "root"git config --global user.email "[email protected]"git clone http://172.16.38.31/root/de...原创 2020-03-20 10:37:48 · 1098 阅读 · 0 评论 -
第1集(GItlab+Jenkins+SonarQube+Docker+Harbor+Selenium实现CI/CD之环境搭建)
环境说明平台:金山云Jenkins: 公网IP/120.92.123.253 内网IP/10.0.1.10操作系统:CentOS 7.4配置:2C4G50G在jenkins上操作搭建Jenkinshostnamectl set-hostname jenkinsuseradd -s /bin/bash jenkinsecho "jenkins:123456" |chpas...原创 2020-03-19 16:56:58 · 1943 阅读 · 0 评论 -
华为云之docker技术实现LNMP容器化—nginx配置文件
nginx代理服务器worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1024;...原创 2019-08-29 16:02:48 · 413 阅读 · 0 评论 -
华为云之docker技术实现LNMP容器化——步骤
anshible堡垒机、审计、跳板机 (192.168.1.200)1.搭建FTP服务,自建YUM仓库,安装lrzsz,实现文件的上传下载;安装lftp,可以支持tab键2.上传私钥,实现本机可以ssh免密登录内网所有主机【购买别的主机时需选择相应的秘钥对】 路径为/root/.ssh/id_rsa,权限为400搭建NFS服务器,发布/cloud_nsd,方便通过脚本部署服务 3.安装...原创 2019-06-26 11:39:42 · 457 阅读 · 0 评论