当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- K-vim installation and the ycmd server shut down (restart with ': ycmrestartserver')
- 失眠一个整晚上
- 8. Swarm creates maintenance and horizontal extension service
- 图像处理工具包ImagXpress使用教程,如何查看事件
- 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?
- Introduction to Jenkins (2) declarative pipeline
- python3操作gitlab
- Stm32f030k6t6 compatible replacement smart mm32f031k6t6
- ImageMagick - add watermark
- pc端与移动端适配解决方案之rem
猜你喜欢
vue3 新特性
汽车维修app开发的好处与功能
高速公路二维码定位报警系统
Windows 10 蓝牙管理页面'添加蓝牙或其他设备'选项点击无响应的解决方案
[doodling the footprints of Internet of things] Introduction to Internet of things
Cloudquery v1.2.0 release
JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
Developing STM32 USB with cubemx
September 3, 2020: naked writing algorithm: loop matrix traversal.
你真的会使用搜索引擎吗?
随机推荐
测试攻城狮必备技能点!一文带你解读DevOps下的测试技术
In 2020, how can wechat seal numbers be quickly lifted?
Configuration of AP hotspot on xunwei-imx6ull development board
Python3 operating gitlab
失眠一个整晚上
Points to be considered when deleting mapping field of index in ES
A good thing for working people -- to temper the will of iron and steel requires such an efficient computer
[graffiti Internet of things footprints] panoramic introduction of graffiti cloud platform
Nodejs中使用jsonwebtoken(JWT)生成token的场景使用
August 18, 2020: introduce Mr process?
The memorandum model of behavior model
Do you really know how to use search engines?
The first choice for lightweight GPU applications is the NVIDIA vgpu instance launched by Jingdong Zhilian cloud
垃圾分类知识竞赛
win7如何快速打cmd并到达所要的目录
20个XR项目路演,近20个资本机构出席!诚邀您参加2020 Qualcomm XR生态合作伙伴大会
1万辆!理想汽车召回全部缺陷车:已发生事故97起,亏损将扩大
Insomnia all night
2020年新规,微信封号怎么快速解除?
7. Swarm builds clusters