当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment
- How to optimize the decoding performance of dynamsoft barcode reader
- How to deploy Gantt chart quickly and correctly
- Stm32f030f4p6 compatible with smart micro mm32f031f4p6
- ImageMagick - add watermark
- 失眠一个整晚上
- How to use Gantt chart layers and filters
- 2020-09-04: do you understand the function call convention?
- 如何解决谷歌Chrome浏览器空白页的问题
- Js数组-数组的用法全在这里(数组方法的重构、数组的遍历、数组的去重,数组的判断与转换)
猜你喜欢

The essence of transaction and the principle of deadlock

How to optimize the decoding performance of dynamsoft barcode reader

Empty test suite appears in JUnit test

Do you really know how to use search engines?

应用层软件开发教父教你如何重构,资深程序员必备专业技能

Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment

Dynamsoft barcode reader v7.5!

Exclusive interview with Alibaba cloud database for 2020 PostgreSQL Asia Conference: Zeng Wenjing

How does LeadTools detect, read and write barcodes

The advantages and functions of psychological counseling app
随机推荐
September 3, 2020: naked writing algorithm: loop matrix traversal.
gitlab 持续集成开发环境之CI/CD
List to map (split the list according to the key, and the value of the same key is a list)
1万辆!理想汽车召回全部缺陷车:已发生事故97起,亏损将扩大
K-vim installation and the ycmd server shut down (restart with ': ycmrestartserver')
win7如何快速打cmd并到达所要的目录
Experiment one
条形码识别性能低,如何优化Dynamsoft Barcode Reader解码性能
2020-08-20: the difference between go and python?
jenkins pipline stage 设置超时
A good thing for working people -- to temper the will of iron and steel requires such an efficient computer
pc端与移动端适配解决方案之rem
Application of UHF RFID medical blood management system
The Interpreter pattern of behavior pattern
Detailed software engineering -- the necessary graphs in each stage
win7 APPCRASH(解决方法)(转)
Big data processing black Technology: revealing the parallel computing technology of Pb level data warehouse gaussdb (DWS)
python3操作gitlab
如何解决谷歌Chrome浏览器空白页的问题
实验一