当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 2020年新规,微信封号怎么快速解除?
- Gantt chart grouping activities tutorial
- 条形码识别性能低,如何优化Dynamsoft Barcode Reader解码性能
- 大佬们如何在nginx镜像里面增加模块?
- 8.Swarm创建维护和水平扩展Service
- Yum [errno 256] no more mirrors to try solution
- win7 APPCRASH(解决方法)(转)
- 2020-08-15: under what circumstances should data tasks be optimized?
- 2020-08-17: how to solve data skew in detail?
- 2020-11-06:go中,谈一下调度器。
猜你喜欢
8.Swarm创建维护和水平扩展Service
LEADTOOLS如何检测,读取和写入条形码
RFID fixed assets management system for fire equipment
关于DevOps的七大误解,99%的人都曾中过招!
JVM class loading mechanism
Mobile pixel adaptation scheme
In 2020, how can wechat seal numbers be quickly lifted?
Two dimensional code location and alarm system of Expressway
.NETCore3.1+Vue.js打造的低代码工作流引擎
Win7 AppCrash (solution)
随机推荐
JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
你真的会使用搜索引擎吗?
Git submission specification
pc端与移动端适配解决方案之rem
Win7 how to quickly type CMD and get to the required directory
And how to solve the conflict between pop-up menu and pop-up menu
图像处理工具包ImagXpress使用教程,如何查看事件
Es create a new index database and copy the old index library, practice pro test effective!
Stm32f030f4p6 compatible with smart micro mm32f031f4p6
“非洲用户的付费意愿并不低”——专访四达时代研发总监张亮
Common mathematical basic formulas of recursive and backtracking algorithms
应用层软件开发教父教你如何重构,资深程序员必备专业技能
Two dimensional code location and alarm system of Expressway
Yum [errno 256] no more mirrors to try solution
条形码识别器Dynamsoft Barcode Reader v7.5全新上线!
RFID fixed assets management system for fire equipment
ImageMagick - add watermark
Experiment one
Configuration of AP hotspot on xunwei-imx6ull development board
2020-09-04: do you understand the function call convention?