CICD 持续集成与持续交付——gitlab

部署

虚拟机最小需求:4G内存 4核cpu

下载:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/

安装依赖性

复制代码
[root@cicd1 ~]# yum install -y curl policycoreutils-python openssh-server perl

[root@cicd1 ~]# yum install -y gitlab-ce-15.9.3-ce.0.el7.x86_64.rpm

[root@cicd1 ~]# cd /etc/gitlab/

[root@cicd1 gitlab]# vim gitlab.rb

自动化部署

复制代码
[root@cicd1 gitlab]# gitlab-ctl reconfigure
复制代码
[root@cicd1 ~]# gitlab-ctl status

登录

用户:root

初始密码: cat /etc/gitlab/initial_root_password

语言设置

修改密码,初始密码24小时后过期

新建项目

添加密钥

克隆项目

复制代码
[root@cicd1 ~]# git clone git@192.168.92.21:root/demo.git

[root@cicd1 ~]# cd demo/

[root@cicd1 demo]# ls

[root@cicd1 demo]# git remote -v
复制代码
[root@cicd1 demo]# echo www.westos.org > index.html

[root@cicd1 demo]# ls

[root@cicd1 demo]# git add  index.html

[root@cicd1 demo]# git commit -m "add index.html"

[root@cicd1 demo]# git push -u origin main
相关推荐
Huathy-雨落江南,浮生若梦3 小时前
ElasticSearch9入门(二)分词器安装与复杂查询语法
elasticsearch
JavaBoy_XJ5 小时前
电商系统中ES检索技术设计和运用
大数据·elasticsearch·搜索引擎
Bobby Wang9 小时前
Git详解
elasticsearch
小园子的小菜13 小时前
Elasticsearch高阶用法实战:从数据建模到集群管控的极致优化
大数据·elasticsearch·搜索引擎
谢尔登13 小时前
通用会话控制方案
前端·网络协议·tcp/ip·react.js·gitlab
转转技术团队17 小时前
分页查询的稳定性陷阱与根治方案
后端·mysql·elasticsearch
行走的陀螺仪1 天前
前端CI/CD 流程
前端·ci/cd·工程化·自动化构建
勇往直前plus1 天前
ElasticSearch详解(篇二)
大数据·elasticsearch·jenkins
Hello.Reader1 天前
使用 Flink CDC Elasticsearch Pipeline Connector 打通 MySQL 与 Elasticsearch 的实时链路
mysql·elasticsearch·flink
YongCheng_Liang1 天前
openEuler 22.03 LTS 部署 ELK(Elasticsearch+Logstash+Kibana)完整教程
linux·运维·elk·elasticsearch