当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Es create a new index database and copy the old index library, practice pro test effective!
- 2020-08-17: how to solve data skew in detail?
- Win7 how to quickly type CMD and get to the required directory
- git 提交规范
- .NETCore3.1+Vue.js打造的低代码工作流引擎
- Git remote library rollback specified version
- K-vim installation and the ycmd server shut down (restart with ': ycmrestartserver')
- August 24, 2020: what are small documents? What's wrong with a lot of small files? How to solve many small files? (big data)
- python3操作gitlab
- Windows 10 蓝牙管理页面'添加蓝牙或其他设备'选项点击无响应的解决方案
猜你喜欢

1万辆!理想汽车召回全部缺陷车:已发生事故97起,亏损将扩大

7. Swarm builds clusters

关于DevOps的七大误解,99%的人都曾中过招!

Composition of MRAM cache

Windows 10 蓝牙管理页面'添加蓝牙或其他设备'选项点击无响应的解决方案

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

如何利用PopupWindow实现弹出菜单并解决焦点获取以及与软键盘冲突问题

如何创建交互式内核密度图表

7.Swarm搭建集群

win7 APPCRASH(解决方法)(转)
随机推荐
垃圾分类知识竞赛
How to use Gantt chart layers and filters
如何解决谷歌Chrome浏览器空白页的问题
Introduction to Jenkins (2) declarative pipeline
2020-11-06:go中,谈一下调度器。
三步轻松理解Kerberos协议
About Devops seven misunderstandings, 99% of people have been hit!
August 14, 2020: what are the execution engines for data tasks?
Benefits and functions of auto maintenance app development
vue3 新特性
9.集群之间服务通信 RoutingMesh
2020-08-19: what mechanism does TCP ensure reliability?
September 3, 2020: naked writing algorithm: loop matrix traversal.
你真的会使用搜索引擎吗?
How to add modules to nginx image?
How does varhart xgantt represent working days on a calendar
Nonvolatile MRAM memory used in all levels of cache
VARCHART XGantt如何在日历上表示工作日
JS string - string string object method
如何使用甘特图图层和筛选器