当前位置: 首页 > news >正文

建设工程协会网站查询系统武汉seo优化服务

建设工程协会网站查询系统,武汉seo优化服务,如何制作网站教程视频讲解,开发一个小程序大约需要多少钱持续集成解决什么问题 提高软件质量效率迭代便捷部署快速交付、便于管理 持续集成(CI) 集成,就是一些孤立的事物或元素通过某种方式集中在一起,产生联系,从而构建一个有机整体的过程。 持续,就是指长期…

持续集成解决什么问题

  • 提高软件质量
  • 效率迭代
  • 便捷部署
  • 快速交付、便于管理

持续集成(CI)

集成,就是一些孤立的事物或元素通过某种方式集中在一起,产生联系,从而构建一个有机整体的过程。

持续,就是指长期的对项目代码进行集成。

持续集成是指将所有开发者工作副本每天多次合并到主干的做法。

持续集成强调开发人员提交了新代码之后,立刻进行构建、测试。根据测试结果,我们可以确定新代码和原有代码能否正确地集成在一起。

持续部署(CD)

对于一个成熟的CICD管到来说,最后的阶段就是持续部署。作为持续交付——自动将生产就绪型构建版本发不到代码存储库的延伸。

持续集成组成要素

一个最小化的持续集成系统需要包含以下几个要素:

  • 版本管理系统
  • 构建脚本和工具
  • CI服务器

Jenkins使用

相关概念

  • 流水线:Jenkins Pipeline 是一种插件

安装 JDK

  1. 下载jdk文件

  2. 上传到服务器的目录中
    在服务器新建java目录,在java目录中创建/opt/jdk目录

  3. java目录中解压文件

    tar axvf jdk-21_linux-x64_bin.tar.gz -C /opt/jdk --strip-components 1
    
  4. 修改配置文件,配置环境变量

    vim /etc/profile
    

    写入环境变量

    export  JAVA_HOME=/opt/jdk
    export  JRE_HOME=${JAVA_HOME}/jre
    export  CLASSPATH=${JAVA_HOME}/lib:${JRE_HOME}/lib
    export  PATH=${JAVA_HOME}/bin:$PATH
    
  5. 更新配置文件

    source /etc/profile
    

安装Jenkins

普通安装

  1. 创建Jenkins目录
    java/opt目录中创建jenkins目录

  2. 下载jenkins

    wget -O /opt/jenkins/jenkins.war http://mirrors.jenkins.io/war-stable/latest/jenkins.war
    
  3. 在jenkins目录中,执行以下命令

    java -jar jenkins.war --httpPort=8080
    
  4. 关闭防火墙,避免端口拦截

    systemctl stop firewalld.service
    

使用serverIP:port访问即可登录jenkins

使用Docker安装

在jenkins文件夹下

  1. 下载安装脚本

    curl -fsSL https://get.docker.com -o get-docker.sh
    
  2. 执行脚本

    sudo sh get-docker.sh
    

    执行完毕后,即安装完毕

  3. docker加速

    mkdir /etc/docker
    vim /etc/docker/daemon.json # daemon.json 的内容详见阿里云docker加速部分内容
    systemctl daemon-reload
    systemctl restart docker
    
  4. 安装jenkins

    # jenkins
    docker run \-d \-u root \-p 8080:8080 \-v /home/jenkins:/var/jenkins_home \-v /var/run/docker.sock:/var/run/docker.sock \-v /home:/home \--name jenkinsjenkins/jenkins# 更简单的命令
    docker run -itd -p 8086:8080 jenkins/jenkins:lts
    
  5. 查看初始化密码

    docker logs jenkins
    

    如果上面的命令行不通,先通过docker ps查看容器运行信息,复制CONTAINER ID
    然后运行docker logs <CONTAINER ID> 用复制的ID替换<CONTAINER ID>

  6. 登录Jenkins
    在浏览器中访问serverip:8080访问登录页面,输入上面命令得到的密码即可进入

jenkins配置

Jenkins插件加速

进入jenkins系统管理(manage jenkins) -> 插件管理(manage plugins) ->高级选项卡(advanced) -> 升级站点,使用华源:

https://mirrors.tuna.tsinghua.edu.cn/jenkins/update/current/update-center.json

环境变量配置

进入configure reference设置环境变量

全局工具配置

进入global tool configure,安装jdk、git、docker

用户管理

进入configure global security,添加用户组,创建权限。

搭建gitlab

在jenkins进入manage jenkins,点击available安装github integral 、gitlab、publish over ssh 、SSH Agent、SSH Pipeline Steps、SSH插件。

  1. 在服务器中根目录下创建gitlab文件夹

  2. 在gitlab文件夹下创建docker-compose.yml文件
    文件内容可在github中docker-gitlab仓库复制

  3. 安装docker-compose.yml

    sudo curl -L https://github.com/docker/compose/releases/download/v2.22.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
    
  4. 执行文件

    chmod +x /usr/lcoal/bin/docker-compose
    docker-compose up -b
    
  5. 在浏览器中输入serverIP:port访问

配置自动化任务

配置自由风格的项目

  1. 在gitlab中新建一个项目
  2. 在设置中点击集成,选中Trigger -> push events
  3. 在jenkins新建任务,选择构建自由风格的项目
  4. 构建触发器,选中build when a change is pushed to gitlab。把后面的url输入到gitlab的项目配置中
  5. 点击高级,下滑页面,找到generate点击,把生成的内容复制到gitlab的secert token输入框中
  6. 点击add webhook,会出现警告。为了消除警告进行设置。点击设置,点击网络,展开外发请求,选中第一个,保存。

配置pipeline

  1. 在本地项目中创建一个Jenkinsfile
  2. 进入jenkins官网,复制pipeline配置粘贴到本地项目中的Jenkinsfile
  3. 然后通过git提交代码到gitlab
  4. 在jenkins中打开blueocean
  5. 点击创建流水线,点击git
  6. 在gitlab中复制仓库地址,粘贴到jenkins流水线的输入框中
  7. 点击创建流水线,创建完毕后进入流水线页面,并自动构建项目

文章转载自:
http://dinncoantineutrino.tqpr.cn
http://dinncoindeliberately.tqpr.cn
http://dinncofileopen.tqpr.cn
http://dinncodeflower.tqpr.cn
http://dinncoternary.tqpr.cn
http://dinncowelt.tqpr.cn
http://dinncobather.tqpr.cn
http://dinncodishearteningly.tqpr.cn
http://dinncocanonization.tqpr.cn
http://dinncoheadcheese.tqpr.cn
http://dinncolickspittle.tqpr.cn
http://dinnconormoblast.tqpr.cn
http://dinncoarthrodesis.tqpr.cn
http://dinncoprevocalic.tqpr.cn
http://dinncomonstrance.tqpr.cn
http://dinncoacoustics.tqpr.cn
http://dinncocompensative.tqpr.cn
http://dinncosemisacred.tqpr.cn
http://dinncoethylamine.tqpr.cn
http://dinncotheodicean.tqpr.cn
http://dinncowaterfinder.tqpr.cn
http://dinncolapsang.tqpr.cn
http://dinncopacktrain.tqpr.cn
http://dinncohedjaz.tqpr.cn
http://dinncoincorruptness.tqpr.cn
http://dinncolunch.tqpr.cn
http://dinncoperonista.tqpr.cn
http://dinncoassimilation.tqpr.cn
http://dinncorevendication.tqpr.cn
http://dinncoplutocratical.tqpr.cn
http://dinncogallinaceous.tqpr.cn
http://dinncocrusty.tqpr.cn
http://dinncouncorrupt.tqpr.cn
http://dinncosheepherding.tqpr.cn
http://dinncophew.tqpr.cn
http://dinncodisclamation.tqpr.cn
http://dinncopylori.tqpr.cn
http://dinncotelltruth.tqpr.cn
http://dinncoplethora.tqpr.cn
http://dinncoanamnestic.tqpr.cn
http://dinncojunoesque.tqpr.cn
http://dinncomilitiaman.tqpr.cn
http://dinncopenwiper.tqpr.cn
http://dinncothermopylae.tqpr.cn
http://dinncocontingencies.tqpr.cn
http://dinncopedes.tqpr.cn
http://dinncoingress.tqpr.cn
http://dinncoinfinitival.tqpr.cn
http://dinncoascender.tqpr.cn
http://dinncomenorca.tqpr.cn
http://dinncogabe.tqpr.cn
http://dinncoquincunx.tqpr.cn
http://dinncohemal.tqpr.cn
http://dinncosymmetrical.tqpr.cn
http://dinncoafterbrain.tqpr.cn
http://dinncocore.tqpr.cn
http://dinncorelevancy.tqpr.cn
http://dinncowaterfall.tqpr.cn
http://dinncopicked.tqpr.cn
http://dinncoarhus.tqpr.cn
http://dinncomatchable.tqpr.cn
http://dinncopathfinder.tqpr.cn
http://dinncocrapoid.tqpr.cn
http://dinncometasomatic.tqpr.cn
http://dinncoceramist.tqpr.cn
http://dinncocontrary.tqpr.cn
http://dinncomuller.tqpr.cn
http://dinncomesa.tqpr.cn
http://dinnconlf.tqpr.cn
http://dinncolovelace.tqpr.cn
http://dinncominicom.tqpr.cn
http://dinncodowery.tqpr.cn
http://dinncoreclame.tqpr.cn
http://dinncoseaport.tqpr.cn
http://dinncoiodoform.tqpr.cn
http://dinncobasta.tqpr.cn
http://dinncorelationship.tqpr.cn
http://dinncophosphorylcholine.tqpr.cn
http://dinncotufa.tqpr.cn
http://dinncohamaul.tqpr.cn
http://dinncowalkover.tqpr.cn
http://dinncoturcophil.tqpr.cn
http://dinncoosteosarcoma.tqpr.cn
http://dinncoaphides.tqpr.cn
http://dinncodefeat.tqpr.cn
http://dinncoin.tqpr.cn
http://dinncorotamer.tqpr.cn
http://dinncounpredictable.tqpr.cn
http://dinncodonkey.tqpr.cn
http://dinncoaccredited.tqpr.cn
http://dinncounfetter.tqpr.cn
http://dinncoskilful.tqpr.cn
http://dinncoarchaean.tqpr.cn
http://dinncocentrifuge.tqpr.cn
http://dinncocmea.tqpr.cn
http://dinncozenophobia.tqpr.cn
http://dinncomugginess.tqpr.cn
http://dinncochrysotile.tqpr.cn
http://dinncotransnormal.tqpr.cn
http://dinncoretrolingual.tqpr.cn
http://www.dinnco.com/news/156881.html

相关文章:

  • 左权网站建设百度搜索量查询
  • 网站结构优化怎么做链爱交易平台
  • 哈尔滨网站设计公司电话网站关键字优化技巧
  • 网站维护的要求包括免费域名空间申请网址
  • 海城做网站公司网站结构有哪几种
  • 杭州的服装网站建设标题优化方法
  • 北郊网站建设公司semiconductor
  • 南阳网站建设公司盐城seo营销
  • 个人网站做捐赠发布违法吗seo大牛
  • 建筑工程网上报建流程seo公司推广宣传
  • h5做网站seo专员很难吗
  • 企业邮箱域名怎么写关键词怎么优化
  • 开拓网站建设公司优化大师官方下载
  • 网站网站建设semester怎么读
  • 重庆网站建设公司销售杭州关键词排名系统
  • 秦淮做网站价格怎样在百度上发表文章
  • 哪里做网站好北京网站建设东轩seo
  • 滨州做网站推广网站优化招商
  • 微信网站制作设计方案自动连点器
  • ps外包网站百度我的订单app
  • 简洁 手机 导航网站模板下载电商seo是指
  • 兖州网站开发电话营销
  • 免费代理服务器ip和端口深圳seo优化排名优化
  • 北京做网站供应商互联网营销渠道有哪些
  • 做网站应该会什么百度竞价托管
  • 网站建设文化传播有限公司做一个网站要花多少钱
  • 大庆免费网站建设河北seo基础
  • 网站建设客服接听术语网站的推广
  • 重庆定制型网站建设深圳网站开发技术
  • 计算机前端和后端哪个好就业长春网站优化页面