当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- The advantages and functions of psychological counseling app
- 插件Bilibili新版0.5.5
- Google browser realizes video playback acceleration function
- K-vim installation and the ycmd server shut down (restart with ': ycmrestartserver')
- Mongo user rights login instruction
- gitlab 持续集成开发环境之CI/CD
- 实验一
- Introduction to Jenkins (2) declarative pipeline
- 嘉宾介绍|2020 PostgreSQL亚洲大会中文分论坛:潘娟
- 嘉宾专访|2020 PostgreSQL亚洲大会中文分论坛:岳彩波
猜你喜欢

Bluetooth broadcast chip for Shanghai giant micro

confd

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

2020-11-06: go, let's talk about the scheduler.

Reserved battery interface, built-in charge and discharge circuit and electricity meter, quickly help easily handle hand-held applications

In 2020, how can wechat seal numbers be quickly lifted?

三步轻松理解Kerberos协议

Configuration of AP hotspot on xunwei-imx6ull development board

Dynamsoft barcode reader v7.5!

Jenkins pipline stage setting timeout
随机推荐
August 18, 2020: introduce Mr process?
A good thing for working people -- to temper the will of iron and steel requires such an efficient computer
8. Swarm creates maintenance and horizontal extension service
JVM class loading mechanism
Logo design company, Nanjing
Two dimensional code location and alarm system of Expressway
Idea activation to 2089 failure
September 3, 2020: naked writing algorithm: loop matrix traversal.
Dynamsoft barcode reader v7.5!
移动端像素适配方案
About Devops seven misunderstandings, 99% of people have been hit!
win7如何快速打cmd并到达所要的目录
confd
Windows 10 Bluetooth management page 'add Bluetooth or other devices' option click no response solution
Experiment one
gitlab 持续集成开发环境之CI/CD
QT audio and video development 46 video transmission UDP version
垃圾分类知识竞赛
Getting started with varhart xgantt
Points to be considered when deleting mapping field of index in ES