当前位置:网站首页>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
边栏推荐
- Detailed software engineering -- the necessary graphs in each stage
- ImageMagick - add watermark
- 应用层软件开发教父教你如何重构,资深程序员必备专业技能
- win7 APPCRASH(解决方法)(转)
- Jenkins入门(二)声明式流水线Jenkins Pipeline
- JS string - string string object method
- Points to be considered when deleting mapping field of index in ES
- Nanjing logo design and production, guide VI system design
- C calls SendMessage to refresh the taskbar icon (the icon does not disappear at the end of forcing)
- 2020-08-17: how to solve data skew in detail?
猜你喜欢
About Devops seven misunderstandings, 99% of people have been hit!
Git remote library rollback specified version
REM: the solution of PC and mobile
JS string - string string object method
The first choice for lightweight GPU applications is the NVIDIA vgpu instance launched by Jingdong Zhilian cloud
Common mathematical basic formulas of recursive and backtracking algorithms
C calls SendMessage to refresh the taskbar icon (the icon does not disappear at the end of forcing)
Method of code refactoring -- Analysis of method refactoring
September 3, 2020: naked writing algorithm: loop matrix traversal.
条形码识别性能低,如何优化Dynamsoft Barcode Reader解码性能
随机推荐
汽车维修app开发的好处与功能
vue3 新特性
Application layer software development Godfather teaches you how to refactor, senior programmers must professional skills
Python 3 operates the Jenkins module API
条形码识别性能低,如何优化Dynamsoft Barcode Reader解码性能
关于DevOps的七大误解,99%的人都曾中过招!
How to write plug-in code of small program mall system? How to use code to check whether the plug-in is successfully added?
Mongo user rights login instruction
2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
REM: the solution of PC and mobile
应用层软件开发教父教你如何重构,资深程序员必备专业技能
The advantages and functions of psychological counseling app
Python3 operating gitlab
Git SSH bad permissions
超高频RFID医疗血液管理系统应用
Es create a new index database and copy the old index library, practice pro test effective!
8. Swarm creates maintenance and horizontal extension service
python3操作gitlab
win7 APPCRASH(解决方法)(转)
实验一