当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- How to deploy Gantt chart quickly and correctly
- Stm32f030f4p6 compatible with smart micro mm32f031f4p6
- Empty test suite appears in JUnit test
- FreeSWITCH视频会议“标准”解决方案
- VARCHART XGantt入门教程
- Big data processing black Technology: revealing the parallel computing technology of Pb level data warehouse gaussdb (DWS)
- 20 XR projects roadshows, nearly 20 capital institutions attended! We sincerely invite you to attend the 2020 qcomm XR eco Partner Conference
- How to solve the problem of blank page in Google Chrome browser
- Shanghai Pudong Development Bank, which frequently receives penalty tickets, has been cheated by hundreds of millions of yuan in loans, and lacks of internal control?
- JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
猜你喜欢

失眠一个整晚上

Solution to st link USB communication error in stlink Download

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

频收罚单的浦发银行:增收不增利,曾遭骗贷数亿元,内控缺位?

高速公路二维码定位报警系统

Two dimensional code location and alarm system of Expressway

k-vim安装及The ycmd server SHUT DOWN (restart with ':YcmRestartServer')这种错误的解决方法

Common mathematical basic formulas of recursive and backtracking algorithms

【笔记】Error while loading PyV8 binary: exit code 1解决方法

谈了多年的数字化转型,为什么还有很多企业依然“口头管理”
随机推荐
2020-08-20: the difference between go and python?
Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment
Stm32f030k6t6 compatible replacement smart mm32f031k6t6
Cloudquery v1.2.0 release
ImageMagick - 添加水印
Win7 how to quickly type CMD and get to the required directory
Do you really know how to use search engines?
汽车维修app开发的好处与功能
Application of UHF RFID medical blood management system
如何才能快速正确的部署甘特图
【笔记】Error while loading PyV8 binary: exit code 1解决方法
Developing STM32 USB with cubemx
September 9, 2020: naked writing algorithm: two threads print numbers 1-100 in turn.
Git SSH bad permissions
Benefits and functions of auto maintenance app development
FreeSWITCH视频会议“标准”解决方案
confd
Win7 AppCrash (solution)
August 30, 2020: naked write algorithm: the nearest common ancestor of two nodes in a binary tree.
VARCHART XGantt如何在日历上表示工作日