当前位置:网站首页>CI / CD of gitlab continuous integrated development environment
CI / CD of gitlab continuous integrated development environment
2020-11-07 16:43:00 【Green tea in summer】
One 、 preparation :
- download Oracle jdk 、apache maven、Ubuntu-20.04.1、gitlab 、Oracle VM VirtualBox、sshd、xshell、 etc. .
- Install according to your own needs Oracle VM VirtualBox And change the installation path .
- install Ubuntu( Turn off network setup ) Fast , On the contrary, it's very slow .
- Upload the downloaded to Ubuntu Under the system directory , Position yourself .
Two 、 Unzip, download and configure the environment
- establish java Installation path directory file
- mkdir /usr/local/java
- establish maven Installation path directory file
- mkdir /usr/local/maven
- establish tomcat Installation path directory file
- mkdir /usr/local/tomcat
- Unzip and copy to the destination folder ( Run at the terminal of uploading installation package or downloading installation package )
- 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/
- Configuration environment :vi or vim
- vi /etc/profile The configuration will appear here Restart failure , End of configuration perform source /etc/profile
vi ~/.bashrc Configure the whole system
-
# java Installation path
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 Installation path
export M2_HOME=/usr/local/maven/apache-maven-3.6.3
export PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin -
establish maven Local repository
-
mkdir /usr/local/maven
- Set up a local warehouse
- vi /usr/local/maven/apache-maven-3.6.3/conf/settings.xml
- <localRepository>/usr/local/maven/localRepository</localRepository>
-
Configure Alibaba cloud remote warehouse
-
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror> -
After configuration, verify whether
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"
install gitlab
Reference resources gitlab Official website
install gitlab
Production dependence gitlab ci/cd file
版权声明
本文为[Green tea in summer]所创,转载请带上原文链接,感谢
边栏推荐
- Git remote library rollback specified version
- VARCHART XGantt如何在日历上表示工作日
- 垃圾分类知识竞赛
- 2020-08-15: under what circumstances should data tasks be optimized?
- How to deploy Gantt chart quickly and correctly
- 2020-11-06:go中,谈一下调度器。
- Big data processing black Technology: revealing the parallel computing technology of Pb level data warehouse gaussdb (DWS)
- 8.Swarm创建维护和水平扩展Service
- confd
- Image processing toolkit imagexpresshow to view events
猜你喜欢
三步轻松理解Kerberos协议
Using JSON webtoken (JWT) to generate token in nodejs
WebAPI接口设计:SwaggerUI文档 / 统一响应格式 / 统一异常处理 / 统一权限验证
[graffiti Internet of things footprints] panoramic introduction of graffiti cloud platform
Bluetooth broadcast chip for Shanghai giant micro
2020-09-04: do you understand the function call convention?
Detailed software engineering -- the necessary graphs in each stage
Stm32f030c6t6 compatible to replace mm32spin05pf
Two dimensional code location and alarm system of Expressway
Js字符串-String字符串对象方法
随机推荐
Epu360: all the H5 templates you want are here, e-book, big turntable, red envelope rain, questionnaire survey
LEADTOOLS如何检测,读取和写入条形码
Js字符串-String字符串对象方法
2020-09-04: do you understand the function call convention?
使用RabbitMQ实现分布式事务
应用层软件开发教父教你如何重构,资深程序员必备专业技能
pc端与移动端适配解决方案之rem
条形码识别性能低,如何优化Dynamsoft Barcode Reader解码性能
Test the necessary skill points of siege lion! This article takes you to interpret the testing technology under Devops
Js数组-数组的用法全在这里(数组方法的重构、数组的遍历、数组的去重,数组的判断与转换)
Ora-02292: complete constraint violation (midbjdev2.sys_ C0020757) - subrecord found
20个XR项目路演,近20个资本机构出席!诚邀您参加2020 Qualcomm XR生态合作伙伴大会
How to use Gantt chart layers and filters
Two dimensional code location and alarm system of Expressway
1万辆!理想汽车召回全部缺陷车:已发生事故97起,亏损将扩大
ImageMagick - 添加水印
Mobile pixel adaptation scheme
Dynamsoft barcode reader v7.5!
8.Swarm创建维护和水平扩展Service
Characteristics of magnetic memory chip STT-MRAM