gitlab

Does GitHub for Windows work with GitLab?

懵懂的女人 提交于 2020-01-27 08:55:26
问题 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

GitLab 之 Linux十分钟快装

我是研究僧i 提交于 2020-01-27 02:48:10
先把 Shell 命令贴出来, 楼主以 CentOS release 6.5 (Final) 64位 为例: //配置系统防火墙,把HTTP和SSH端口开放. sudo yum install curl openssh-server postfix cronie sudo service postfix start sudo chkconfig postfix on sudo lokkit -s http -s ssh //下载rpm安装包 sudo curl -O https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-ce-7.10.0~omnibus.2-1.x86_64.rpm sudo rpm -ivh gitlab-ce-7.10.0~omnibus.2-1.x86_64.rpm //这一步也可以用管道的方式安装: //sudo curl http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash //sudo yum install gitlab-ce sudo rpm -ivh gitlab-ce-7.10.0~omnibus.2-1.x86_64.rpm //修改 自带的nginx配置,以及邮件提醒配置 vim

gitlab 使用docker-compose代替docker安装gitlab

[亡魂溺海] 提交于 2020-01-27 00:37:40
** 记录一次使用docker安装gitlab后的项目clone地址问题解决方案: 可以使用docker-compose代替docker安装 ** 问题: 1、gitlab搭建好之后,创建项目的clone地址端口号不正确; 2、docker安装的gitlab通过后续配置解决上述问题后,docker restart gitlab后又还原了(万一服务器需要重启,则需要重新配置); 一、docker搭建gitlab: 1、拉取镜像,时间较长 docker pull gitlab/gitlab-ce 2、创建待挂载目录(如果没有创建,运行容器时会自动创建) mkdir -p /usr/local/gitlab/ { config,logs,data } 3、没有域名的可以使用服务器IP地址 docker run \ -d \ --privileged = true \ --hostname code.bsapo.com \ -p7001:443 -p7002:80 -p7003:22 \ --name gitlab \ --restart always \ -v /usr/local/gitlab/config:/etc/gitlab -v /usr/local/gitlab/logs:/var/log/gitlab -v /usr/local/gitlab/data:/var/opt

CentOS 7.6 搭建Gitlab教程

放肆的年华 提交于 2020-01-26 23:16:31
简介 GitLab是利用 Ruby on Rails 一个开源的版本管理系统,实现一个存放代码的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。它拥有与Github类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。团队成员可以利用内置的简单聊天程序(Wall)进行交流。它还提供一个代码片段收集功能可以轻松实现代码复用,便于日后有需要的时候进行查找。 GitLab和GitHub的区别 相同点: 两个都是基于web的Git仓库,而且GitLab在使用方式上和GitHub基本上是一样的,都提供了存储、分享、发布和合作开发项目的中心化云存储场所 不同点: GitHUb同时提供公共仓库和私有仓库,但如果需要使用私有仓库,是需要收费的.GitLab让开发团队对他们的代码仓库拥有更多的控制,相比于GitHub,它有不少的特色: 允许免费设置仓库权限;允许用户选择分享一个project的部分代码;允许用户设置project的获取权限,进一步的提升安全性;可以设置获取到团队整体的改进进度;通过innersourcing让不在权限范围内的人访问不到该资源。 从代码私有性方面来看,有时公司并不希望员工获取到全部的代码,这个时候GitLab无疑是更好的选择。但对于开源项目而言,GitHub依然是代码存放的首选。 搭建过程 1

Gitlab上传项目

拜拜、爱过 提交于 2020-01-26 18:29:25
Gitlab添加组、创建用户、创建项目 1)创建组 使用管理员 root 创建组,一个组里面可以有多个项目分支,可以将开发添加到组里面进行设置权限, 不同的组就是公司不同的开发项目或者服务模块,不同的组添加不同的开发即可实现对开发设置权限的 管理 2)创建用户 创建用户的时候,可以选择Regular或Admin类型。 创建完用户后,立即修改密码 3 )将用户添加到组中 选择某个用户组,进行 Members 管理组的成员 Gitlab 用户在组里面有 5 种不同权限: Guest :可以创建 issue 、发表评论,不能读写版本库 Reporter :可以克隆代码,不能提交, QA 、 PM可以赋予这个权限 Developer :可以克隆代码、开发、提交、 push ,普通开发可以赋予这个权限 Maintainer :可以创建项目、添加 tag 、保护分支、添加项目成员、编辑项目,核心开发可以赋予这个权限 Owner :可以设置项目访问权限 - Visibility Level 、删除项目、迁移项目、管理组成员,开发组组长可以赋予这个权限 4 )在用户组中创建项目 以刚才创建的新用户身份登录到 Gitlab ,然后在用户组中创建新的项目 源码上传到 Gitlab 仓库 下面来到 IDEA 开发工具,我们已经准备好一个简单的 Web 应用准备到集成部署。 我们要把源码上传到

阿里云安装Gitlab

人走茶凉 提交于 2020-01-26 16:15:20
手动部署GitLab环境 完成以下操作,手动部署GitLab环境: 安装依赖包。 sudo yum install -y curl policycoreutils-python openssh-server 设置SSH开机自启动并启动SSH服务。 sudo systemctl enable sshd sudo systemctl start sshd 安装Postfix来发送通知邮件。 sudo yum install postfix 设置Postfix开机自启动。 sudo systemctl enable postfix 启动Postfix服务。 运行命令 vim /etc/postfix/main.cf 打开 main.cf文件,找到下图内容: 按 i 进入编辑模式。 将这行代码改为 inet_interfaces = all 。 按 Esc 退出编辑模式,然后输入 :wq 并回车以保存并关闭文件。 运行命令 sudo systemctl start postfix 启动Postfix服务。 添加GitLab软件包仓库。 curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash 安装GitLab。 sudo EXTERNAL_URL=

gitlab相关操作及命令

不羁岁月 提交于 2020-01-26 10:07:54
网上很多关于git的操作及命令,很散,新人很难看得懂也很难上手,于是我整理了一下大家的成果在一起,做了一个傻瓜式的教学。 如果需要下载到本地,请点击: https://download.csdn.net/download/m0_46098242/12060488 一、git初始化配置 1.配置自己的git名字和邮箱 git config --global user.name "your name" git config --global user.email "email@example.com" 2.创建文件夹 创建一个想用来存放git文件作为版本库的本地文件夹 mkdir gitFile 3.进入文件夹 cd gitFile pwd 可以查看当前路径 4.Git init 在该文件夹内 git init ,把这个目录变成git可以管理的仓库 路径下多了一个 .git隐藏文件 ls -a 可以查看所有文件,包括隐藏文件 5.生成shh key ssh-keygen -t rsa -C "email@example.com" 之后一路回车,可以看到多了一个 ~/.ssh文件,该路径下有秘钥 6.将公共秘钥拷贝到平台上 cd ~/.ssh 拷贝id_rsa.pub中所有内容 7.Clone项目到本地 git clone 项目地址 8.切换到自己的开发分支 切换到自己的开发分支

Gradle task assembleRelease not found in CI build, works with Android Studio

白昼怎懂夜的黑 提交于 2020-01-25 07:49:07
问题 I am trying to use gitlab/fastlane to build my project. When i execute the scripts in the default project they work correctly, but when the runner checks out the project the build fails with the message "Task 'assembleRelease' not found in root project 'projectname'". When i open the CI project location in Android Studio I have to execute "sync project with gradle files" before build is available. After I have done this i can execute ./gradlew assembleRelease (and the fastlane script also

How to use markdown for description from a file in gitlab CI using release API

江枫思渺然 提交于 2020-01-25 06:45:08
问题 I'm using the Gitlab release API in the gitlab-ci.yml to be able to automatically create a new release when deploying. Simply putting a curl request like here in the docs works just fine. For the description, the docs state that markdown is allowed, which is great. However, I can't seem to figure out or come up with an idea to load a description from a markdown file within the curl request. I've already tried storing the content of the markdown file in a variable in the gitlab-ci.yml prior to

Deploying an app to gke from CI

房东的猫 提交于 2020-01-24 23:11:25
问题 I use gitlab for my CI, they host it and i have my own runners. I have a k8s cluster running in gke. I want to use kubectl apply to deploy new versions of my containers. This all works from my local machine because it uses my google account. I tried setting this all up as suggested by k8s and gitlab 1. copy over the ca.crt 2. copy over the token - echo "$KUBE_CA_PEM" > kube_ca.pem - kubectl config set-cluster default-cluster --server=$KUBE_URL --certificate-authority="$(pwd)/kube_ca.pem" -