当前位置:网站首页>gitlab 持续集成开发环境之CI/CD
gitlab 持续集成开发环境之CI/CD
2020-11-07 16:43:00 【夏天绿茶】
一、准备工作:
- 下载Oracle jdk 、apache maven、Ubuntu-20.04.1、gitlab 、Oracle VM VirtualBox、sshd、xshell、等。
- 根据自己需要安装Oracle VM VirtualBox并改变安装路径。
- 安装Ubuntu(关闭网路安装)速度快,反之速度很慢。
- 将下载的上传至Ubuntu系统的目录下,位置自己定。
二、解压下载并配置环境
- 创建java安装路径目录文件
- mkdir /usr/local/java
- 创建maven安装路径目录文件
- mkdir /usr/local/maven
- 创建tomcat安装路径目录文件
- mkdir /usr/local/tomcat
- 解压并拷贝至目标文件夹(在上传安装包或下载安装包终端运行)
- tar -zxvf jdk-8u171-linux-x64.tar.gz -C /usr/local/java/
- tar -zxvf jdk-8u171-linux-x64.tar.gz -C /usr/local/maven/
- tar -zxvf jdk-8u171-linux-x64.tar.gz -C /usr/local/tomcat/
- 配置环境:vi 或vim
- vi /etc/profile 在这里配置会出现 重启失效,配置完 执行source /etc/profile
vi ~/.bashrc 配置全系统
-
# java 安装的路径
export JAVA_HOME=/usr/local/java/jdk1.8.0_151
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
# maven 安装的路径
export M2_HOME=/usr/local/maven/apache-maven-3.6.3
export PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin -
创建maven本地仓库
-
mkdir /usr/local/maven
- 设置本地仓库
- vi /usr/local/maven/apache-maven-3.6.3/conf/settings.xml
- <localRepository>/usr/local/maven/localRepository</localRepository>
-
配置阿里云远程仓库
-
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror> -
配置完成校验是否
root@gitlab:/home/gitlab# mvn -v
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/maven/apache-maven-3.6.3
Java version: 1.8.0_151, vendor: Oracle Corporation, runtime: /usr/local/java/jdk1.8.0_151/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-52-generic", arch: "amd64", family: "unix"
安装gitlab
参考 gitlab官网
安装gitlab
产靠gitlab ci/cd文档
版权声明
本文为[夏天绿茶]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/3518854/blog/4707389
边栏推荐
- 2020-11-06:go中,谈一下调度器。
- [graffiti Internet of things footprints] panoramic introduction of graffiti cloud platform
- Gantt chart grouping activities tutorial
- JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
- Es create a new index database and copy the old index library, practice pro test effective!
- 汽车维修app开发的好处与功能
- Design of NAND flash interface control
- 轻量型 GPU 应用首选 京东智联云推出 NVIDIA vGPU 实例
- The advantages and functions of psychological counseling app
- #JVM 类加载机制
猜你喜欢
8. Swarm creates maintenance and horizontal extension service
应用层软件开发教父教你如何重构,资深程序员必备专业技能
New features of vue3
超高频RFID医疗血液管理系统应用
Application layer software development Godfather teaches you how to refactor, senior programmers must professional skills
Jenkins installation and deployment process
Empty test suite appears in JUnit test
Google browser realizes video playback acceleration function
测试攻城狮必备技能点!一文带你解读DevOps下的测试技术
List to map (split the list according to the key, and the value of the same key is a list)
随机推荐
Composition of MRAM cache
谈了多年的数字化转型,为什么还有很多企业依然“口头管理”
VARCHART XGantt如何在日历上表示工作日
August 18, 2020: introduce Mr process?
关于DevOps的七大误解,99%的人都曾中过招!
Getting started with varhart xgantt
Using JSON webtoken (JWT) to generate token in nodejs
How to optimize the decoding performance of dynamsoft barcode reader
Git SSH bad permissions
10000! Ideal car recalls all defective cars: 97 accidents have occurred and losses will be expanded
idea 激活到 2089 失效
How does LeadTools detect, read and write barcodes
JS string - string string object method
ImageMagick - add watermark
Stm32f030f4p6 compatible with smart micro mm32f031f4p6
Configuration of AP hotspot on xunwei-imx6ull development board
#JVM 类加载机制
Jenkins入门(二)声明式流水线Jenkins Pipeline
“非洲用户的付费意愿并不低”——专访四达时代研发总监张亮
confd