当前位置:网站首页>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
边栏推荐
- Git SSH bad permissions
- confd
- The use of Xunwei imx6 development board device tree kernel menuconfig
- Detailed software engineering -- the necessary graphs in each stage
- Common syntax corresponding table of mongodb and SQL
- The first choice for lightweight GPU applications is the NVIDIA vgpu instance launched by Jingdong Zhilian cloud
- In 2020, how can wechat seal numbers be quickly lifted?
- Experiment one
- Stm32f030f4p6 compatible with smart micro mm32f031f4p6
- Image processing toolkit imagexpresshow to view events
猜你喜欢

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

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

Epu360: all the H5 templates you want are here, e-book, big turntable, red envelope rain, questionnaire survey

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

三步轻松理解Kerberos协议

#JVM 类加载机制

win7如何快速打cmd并到达所要的目录

2020-09-04: do you understand the function call convention?

Git SSH bad permissions

小程序商城系统插件代码该如何写?怎么用代码检查添加插件是否成功?
随机推荐
Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment
Erd-online free online database modeling tool
1万辆!理想汽车召回全部缺陷车:已发生事故97起,亏损将扩大
The use of Xunwei imx6 development board device tree kernel menuconfig
QT audio and video development 46 video transmission UDP version
Characteristics of magnetic memory chip STT-MRAM
Python 3 operates the Jenkins module API
Design of NAND flash interface control
How does varhart xgantt represent working days on a calendar
Points to be considered when deleting mapping field of index in ES
Windows 10 蓝牙管理页面'添加蓝牙或其他设备'选项点击无响应的解决方案
The 4th China BIM (digital construction) manager Summit Forum will be held in Hangzhou in 2020
FreeSWITCH视频会议“标准”解决方案
如何创建交互式内核密度图表
甘特图对活动进行分组教程
南京标志设计,logo设计公司
cubemx做stm32 USB开发
JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
Stm32f030f4p6 compatible with smart micro mm32f031f4p6
August 24, 2020: what are small documents? What's wrong with a lot of small files? How to solve many small files? (big data)