当前位置:网站首页>gitlab 持续集成开发环境之CI/CD
gitlab 持续集成开发环境之CI/CD
2020-11-07 16:43:00 【夏天绿茶】
一、准备工作:
- 下载Oracle jdk 、apache maven、Ubuntu-20.04.1、gitlab 、Oracle VM VirtualBox、sshd、xshell、等。
- 根据自己需要安装Oracle VM VirtualBox并改变安装路径。
- 安装Ubuntu(关闭网路安装)速度快,反之速度很慢。
- 将下载的上传至Ubuntu系统的目录下,位置自己定。
二、解压下载并配置环境
- 创建java安装路径目录文件
- mkdir /usr/local/java
- 创建maven安装路径目录文件
- mkdir /usr/local/maven
- 创建tomcat安装路径目录文件
- mkdir /usr/local/tomcat
- 解压并拷贝至目标文件夹(在上传安装包或下载安装包终端运行)
- 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/
- 配置环境:vi 或vim
- vi /etc/profile 在这里配置会出现 重启失效,配置完 执行source /etc/profile
vi ~/.bashrc 配置全系统
-
# java 安装的路径
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 安装的路径
export M2_HOME=/usr/local/maven/apache-maven-3.6.3
export PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin -
创建maven本地仓库
-
mkdir /usr/local/maven
- 设置本地仓库
- vi /usr/local/maven/apache-maven-3.6.3/conf/settings.xml
- <localRepository>/usr/local/maven/localRepository</localRepository>
-
配置阿里云远程仓库
-
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror> -
配置完成校验是否
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"
安装gitlab
参考 gitlab官网
安装gitlab
产靠gitlab ci/cd文档
版权声明
本文为[夏天绿茶]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/3518854/blog/4707389
边栏推荐
- k-vim安装及The ycmd server SHUT DOWN (restart with ':YcmRestartServer')这种错误的解决方法
- 7.Swarm搭建集群
- cubemx做stm32 USB开发
- 2020-11-06: go, let's talk about the scheduler.
- ado.net and asp.net The relationship between
- 如何解决谷歌Chrome浏览器空白页的问题
- List to map (split the list according to the key, and the value of the same key is a list)
- 2020-08-15: under what circumstances should data tasks be optimized?
- Dynamsoft barcode reader v7.5!
- 条形码识别性能低,如何优化Dynamsoft Barcode Reader解码性能
猜你喜欢
How to solve the problem of blank page in Google Chrome browser
[graffiti Internet of things footprints] panoramic introduction of graffiti cloud platform
Es create a new index database and copy the old index library, practice pro test effective!
Mongo user rights login instruction
Js字符串-String字符串对象方法
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
ImageMagick - 添加水印
Zhou Jie: database system of East China Normal University
8.Swarm创建维护和水平扩展Service
随机推荐
Plug in bilibilibili new version 0.5.5
Idea activation to 2089 failure
Do you really know how to use search engines?
Top 5 Chinese cloud manufacturers in 2018: Alibaba cloud, Tencent cloud, AWS, telecom, Unicom
VARCHART XGantt如何在日历上表示工作日
August 18, 2020: introduce Mr process?
三步轻松理解Kerberos协议
高速公路二维码定位报警系统
甘特图对活动进行分组教程
Benefits and functions of auto maintenance app development
Google browser realizes video playback acceleration function
How does LeadTools detect, read and write barcodes
ado.net and asp.net The relationship between
The use of Xunwei imx6 development board device tree kernel menuconfig
Big data processing black Technology: revealing the parallel computing technology of Pb level data warehouse gaussdb (DWS)
Detect certificate expiration script
REM: the solution of PC and mobile
2020-11-06: go, let's talk about the scheduler.
In 2020, how can wechat seal numbers be quickly lifted?
轻量型 GPU 应用首选 京东智联云推出 NVIDIA vGPU 实例