gitlab

CentOS7服务器上搭建Gitlab

你说的曾经没有我的故事 提交于 2020-01-31 07:03:12
Gitlab如何搭建? 安装gitlab所需要的依赖 sudo yum install curl policycoreutils openssh-server openssh-clients 使sshd服务自动启动 sudo systemctl enable sshd 启动sshd服务 sudo systemctl start sshd 安装邮件服务器 sudo yum install postfix 使邮件服务器postfix自启动 sudo systemctl enable postfix 启动邮件服务器postfix sudo systemctl start postfix 开放防火墙 sudo firewall-cmd --permanent --add-service=http 重启防火墙 如何启动GitLab? 启动,配置 sudo gitlab-ctl reconfigure 修改gitlab配置文件指定服务器ip和自定义端口 vim /etc/gitlab/gitlab.rb 修改 extenal_url="" 为自己服务器的访问ip+端口或域名 ps:注意这里设置的端口不能被占用,默认是8080端口,可以定义其它端口,并在防火墙设置开放相对应端口。 firewall-cmd --permanent --add-port=8888/tcp systemctl

centos7搭建GitLab

半腔热情 提交于 2020-01-31 07:01:23
1.安装依赖 yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python postfix是用来发邮件的 2. 设置postfix开机自启,并启动,postfix支持gitlab发信功能 systemctl enable postfix && systemctl start postfix 3.进入指定目录下载gitlab cd /usr/local/src 4.下载gitlab包 wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm 5.安装gitlab rpm -i gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm 6.修改gitlab配置文件指定服务器ip和自定义端口: vim /etc/gitlab/gitlab.rb :wq保存并退出 7. 重置 GitLab gitlab-ctl reconfigure 8. 启动 GitLab gitlab-ctl restart 9.访问 GitLab 页面 如果没有域名,直接输入服务器 ip 和指定端口进行访问 初始账户 : root 密码

Gitlab服务器搭建

妖精的绣舞 提交于 2020-01-31 00:37:28
Gitlab服务器搭建 云服务器配置要求 免费服务器申请、配置 服务器设置 swap设置 内存大小调整 超时问题 Gitlab install TODO 为了满足自己一些业余项目的版本管理需要,搭建了自己的gitlab服务器。本文记录了搭建过程以及其中遇到的一些问题和解决方法。中间参考了官方文档和很多前辈的blog,感谢。也感谢腾讯云提供的免费服务器^ - ^。 云服务器配置要求 https://docs.gitlab.com/ee/install/requirements.html 参考gitlab的官方文档,需要关注Memory一条,实际使用中发现需要2GB RAM + 2G swap才能正常安装、运行gitlab。 免费服务器申请、配置 目前我使用的是腾讯云提供的免费云服务器 申请链接 ,1核/1GB/1Mbps/50GB,操作系统使用的是ubuntu16.04.1,目前腾讯有提供活动,个人用户只需要1元钱即可试用1个月(比较适合用于学习,后面长期使用还需要再挑选合适的服务商,哪位朋友有合适的欢迎推荐)。 服务器设置 swap设置 需要注意的是默认系统配置中没有使用swap,之前没有接触过服务器端不清楚这是不是云服务器的普遍配置方式。 安装、配置gitlab时内存开销会大于1G,在目前的服务器上出现out of memory的问题

Azure pipeline from Yaml hosted on Gitlab

我的未来我决定 提交于 2020-01-30 13:15:28
问题 I think it isn't possible to create an Azure Pipeline from Yaml when hosting the Git repository in GitLab. Is anyone able to confirm or deny this? I think it is possible for GitHub, BitBucket and Azure Repos Git. 回答1: You're right, according to the docs the YAML supported only in Azure Repos Git, Bitbucket Cloud, GitHub and GitHub Enterprise Server: 来源: https://stackoverflow.com/questions/58027480/azure-pipeline-from-yaml-hosted-on-gitlab

'Including' private project file using `$CI_JOB_TOKEN`

≯℡__Kan透↙ 提交于 2020-01-29 09:41:39
问题 What I got so far is, it is possible to Authenticate with Personal Access Token and include external CI script but a cleaner approach would be to get access using $CI_JOB_TOKEN since it is more secure and restricted. I am looking into if it can be done this way - include 'https://gitlab-ci-token:${CI_JOB_TOKEN}@raw-file-url' I have tried to curl in this format in a dummy script job, but it fails to fetch the file. Apparently, an external script can be imported using file API and $CI_JOB_TOKEN

从gitlab或者github采用git clone和download zip的区别

巧了我就是萌 提交于 2020-01-29 07:19:42
不要做伸手党啊大兄弟,这种问题自己稍加理解就知道答案了,实在想不到就上谷歌搜一下嘛,比如这个:git - Github: difference between Clone in desktop and zip download "clone" uses git software on your computer to download the source code and it's entire version history. "download zip" creates a zip file of just the current version of the source code for you to download - the project history is not included. 采用git clone的项目包含.git目录,这里面有历史版本信息 采用下载zip文件的是没有版本历史信息的。只是当前分支的最新版本 来源: CSDN 作者: u011250186 链接: https://blog.csdn.net/u011250186/article/details/103595325

gitlab服务部署及使用

狂风中的少年 提交于 2020-01-28 09:53:27
一本正经的搞事情 改变懒惰,成就心中的自己,并非难事 博客园 首页 新随笔 联系 管理 订阅 随笔- 40 文章- 0 评论- 5 gitlab服务部署及使用 目录 一、什么是gitlib 二、实现的原理 三、Gitlab的服务构成 四、Gitlab的优点 五、安装配置gitlab 5.1. 安装依赖包 5.2. 启动postfix,并设置开机自启 5.3. 设置防火墙 5.4. 下载安装gitlab rpm包 5.5. 修改配置文件gitlab.rb 5.6. 重新加载配置文件 5.7. 查看gitlab版本 六、汉化配置 6.1.下载最新汉化包 6.2. 停止服务 6.3. 切换到gitlab汉化包所在的目录 6.4. 比较汉化标签和原标签,导出 patch 用的 diff 文件到/root下 6.5. 将10.0.2-zh.diff作为补丁更新到gitlab中 6.6. 启动gitlab并重新配置gitlab 七、设置发邮件功能 7.1. 修改配置文件 7.2. 重新加载配置并重启服务 八、测试使用 回到顶部 一、什么是gitlib   Gitlab 是一个基于Git实现的在线代码仓库托管软件,你可以用Gitlab自己搭建一个类似于Github一样的系统平台,一般搭建gitlab私服就是用在公司的内部   Gitlab 功能就是能够对代码的提交审核和问题跟踪

Git基本操作

风流意气都作罢 提交于 2020-01-28 00:42:30
创建文件 [root@gitlab git_data] # touch README [root@gitlab git_data] # git status 添加文件跟踪 [root@gitlab git_data] # git add ./* [root@gitlab git_data] # git status 由工作区提交到本地仓库 [root@gitlab git_data] # git commit -m 'first commit' 查看git的状态 [root@gitlab git_data] # git status # 位于分支 master 无文件要提交,干净的工作区 [root@gitlab git_data] # git push -u origin master 添加新文件 git add * 添加到暂存区域 git commit 提交git仓库 -m 后面接上注释信息,内容关于本次提交的说明,方便自己或他人查看 修改或删除原有文件 常规方法 git add * git commit 简便方法 git commit -a -m "注释信息" -a 表示直接提交 删除 # 删除文件 [root@gitlab git_data] # rm 123 -f [root@gitlab git_data] # ls [root@gitlab git_data] #

gitlab+gerrit+jenkins代码托管、审核、持续集成架构搭建

青春壹個敷衍的年華 提交于 2020-01-27 17:21:36
整体的架构设想图是这样的 首先声明一下:搭建架构时我的IP分配与端口 节点1:gitlab 192.168.0.177 节点2:gerrit http:192.168.0.179:9999     jenkins http://192.168.0.179:8180 如果搭建在一台服务器上面,请注意 gitlab默认会占用80端口和8080端口(这个我也想不明白为什么8080端口也会被占用),所以jenkins需要修改成其他端口 当时搭建的时候,也是参考别人的一个帖子http://www.codesec.net/view/215871.html,但是没有注明IP,很让我头疼,也走好多弯路。 1-1 gitlab搭建 GitLab 是一个使用使用 Ruby on Rails 搭建的,用于仓库管理系统的开源项目。使用 Git 作为代码管理工具,并在此基础上搭建起来的web服务 1.1.2. 环境搭建 a) 第一步:安装相应的在依赖包(postfix或者sendmail),其中选择internet site这种网络smtp邮件服务器这种方式来发送邮件,其他一些依赖包:curl \openssh-server\ ca-certificates\ postfix If you install Postfix to send email please select 'Internet Site'

Does GitHub for Windows work with GitLab?

柔情痞子 提交于 2020-01-27 08:56:27
问题 While working on a project using GitHub I've fallen in love with GitHub for Windows as a client. Now a new project beckons where I'll be using GitLab instead of GitHub. Will I still be able to use GitHub for Windows as a client for GitLab? After all, they're both based on git, right? If not, what clients are available for GitLab? 回答1: Yes, you can use the Windows GitHub client and the GitHub Desktop client with GitLab, BitBucket or any other hosted Git solution. We only use it with HTTPS and