gitlab

Is there a way restore files from “repository.git”

做~自己de王妃 提交于 2019-12-18 06:59:46
问题 We have a git server on our local server. I want to backup these git repositories from server side directly copying "repositoryname.git" folders. In case of a problem with a new server is it possible to recover files from these folder? I think the files stored as fractured on an Object folder on this .git folders. And not directly accessible from server. Thank you. 回答1: In order to backup bare repo from the server, you should avoid copying directly the repositoryname.git folder (which

SSH Host Key Verification Failed inside GitLab CI

别等时光非礼了梦想. 提交于 2019-12-18 06:08:27
问题 Local Setup I created a public and private SSH key via the ssh-keygen command. I decided to setup the private key locally first, before setting it up on my repo's gitlab CI. I setup the public key on the server (in this case, another gitlab repo, but this may change in the future and shouldn't affect the question). I successfully communicated with the server locally via the following command (in this case I am using SSH via git , but this again may change in the future): git clone git@gitlab

Rancher2.x流水线自动化部署

时光毁灭记忆、已成空白 提交于 2019-12-18 04:33:22
1、概述   由于一些项目使用了rancher进行部署发布,所以使用Rancher的流水线自动部署功能实现CICD,从gitlab、harbor安装,到流水线配置和中间的一些问题一一进行详细介绍解答。 2、准备工作   前期的Docker和Rancher安装就不在描述,直接进入正题   2.1 gitlab安装      gitlab安装很简单,配置到相应pvc和external_url即可       yaml文件如下       apiVersion: apps/v1beta2 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "1" field.cattle.io/creatorId: user-ff6zz field.cattle.io/publicEndpoints: '[{"addresses":["10.10.1.3"],"port":31901,"protocol":"TCP","serviceName":"gitlab:gitlab-nodeport","allNodes":true}]' creationTimestamp: "2019-12-02T12:48:28Z" generation: 2 labels: cattle.io/creator: norman

Jenkins + Ansible + Gitlab之gitlab篇

怎甘沉沦 提交于 2019-12-18 04:03:26
前言 持续交付 版本控制器:Gitlab、GitHub 持续集成工具:jenkins 部署工具:ansible 课程安排 Gitlab搭建与流程使用 Ansible环境配置与Playbook编写规范 Jenkins环境构建与任务编写 Freestyle任务实现静态网站部署交付 Pipeline任务实现WordPress部署交付 适用对象 从事运维相关岗位的同学 想了解持续交付领域的同学 想拓宽自己的同学 奋战在运维交付第一线的同学 GitLab 什么是GitLab? GitLab是一个开源分布式版本控制系统 开发语言:Ruby 功能:管理项目源代码,版本控制,代码复用与查找 GitLab与GitHub的不同 GitHub分布式在线代码托管仓库,个人版本可直接在线免费使用,企业版本收费且需要服务器安装 GitLab分布式在线代码仓库托管软件,分社区免费版本与企业收费版本,都需要服务器安装。 GitLab的优势和应用场景 开源免费,适合中小型公司将代码放置在该系统中 差异化的版本管理,离线同步以及强大分支管理功能 便捷的GUI操作界面以及强大账号权限管理功能 集成度很高,能够集成绝大多数的开发工具 支持内置HA,保证在高并发下仍旧实现高可用性 GitLab主要服务构成 Nginx静态Web服务器 GitLab-workhorse轻量级的反向代理服务器 GitLab

jenkins+ansible+gitlab

浪子不回头ぞ 提交于 2019-12-18 04:00:22
操作系统 软件名称 软件版本 centos7.5 gitlab 11.4.0 jenkins 2.138.3 ansible 2.4.2 1,gitlab部署 1.1 ,安装依赖软件 yum -y install policycoreutils openssh-server openssh-clients postfix 1.2,设置postfix开机自启,并启动,postfix支持gitlab发信功能 systemctl enable postfix && systemctl start postfix 1.3,下载gitlab安装包,然后安装 centos 7系统的下载地址: https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7 下载rpm包并安装: wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.4.6-ce.0.el7.x86_64.rpm rpm -i gitlab-ce-11.4.6-ce.0.el7.x86_64.rpm 1.4,修改gitlab 配置文件 vim /etc/gitlab/gitlab.rb 1.5,启动gitlab 1.6,访问gitlab页面,默认用户名为 root ,默认密码为 5iveL!fe

GitLab+Jenkins+Ansible

会有一股神秘感。 提交于 2019-12-18 03:59:28
本文章针对个人使用记录请知悉 平台:Centos7.0 Jenkins下载路径: jenkins-2.89.4-1.1.noarch.rpm GitLab下载路径: gitlab-ce-10.6.6-ce.0.el7.x86_64.rpm 注意: 1、安装GitLab时内存不可少于2G 2、关闭防火墙和Selinux(如果公司有防火墙要求则可以自行配置开放GitLab服务端口) 3、此文档不讲Ansible安装方法和使用方法。 可配置阿里源(可选操作): wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 一、安装GitLab 1、安装依赖 yum install -y curl openssh-server openssh-clients postfix cronie policycoreutils-python 2、设置邮件服务开机启动 本次配置这个是因为后续操作更新什么的可以邮件通知systemctl start postfix systemctl enable postfix 3、安装GitLab的RPM包(在上面已提供下载RPM包地址) (在rpm所在目录下执行)rpm -ivh gitlab-ce-10.0.2-ce.0.el7.x86_64.rpm

Jenkins使用SSH的方式从GitLab拉取代码

我是研究僧i 提交于 2019-12-18 00:18:06
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 众所周知,有两种方式对Git repository进行clone,它们分别为SSH和HTTP,其中SSH因为更安全而更受青睐: 在Jenkins源码管理中配置Git,也有这两种方式,如果使用HTTP,需要配置Credentials,提供用户名和密码。 如果使用SSH,无需配置Credentials,但需要对GitLab服务器和Jenkins服务器分别做些配置: 1)在GitLab服务器上为Jenkins创建一个账号,并给予相关工程的权限: 2)在Jenkins服务器上,使用git bash的ssh-keygen指令生成密钥对。 ssh-keygen -t rsa 3)将公钥内容拷贝到GitLab服务器jenkins账号的SSH key中。 来源: oschina 链接: https://my.oschina.net/u/4042451/blog/3035853

CI持续集成系统环境---部署Gitlab环境完整记录

与世无争的帅哥 提交于 2019-12-18 00:17:47
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Gitlab是一个代码托管平台,在实际工作中,对代码管理十分有用。废话不多说,下面是对我自己搭建的Gitlab环境做一记录: 1)安装 ------------------------------------------------------------------------ 或者直接下载bitnami-gitlab-7.1.1-0-linux-x64-installer.run 下载地址: http://pan.baidu.com/s/1i4RaCKH 提取密码:tcia bitnami-gitlab-8.5.1-0-linux-x64-installer.run版本 下载地址: https://pan.baidu.com/s/1i5pbFlb 提取密码:eq2d ------------------------------------------------------------------------- Gitlab的安装采用的是一键安装方式 [root @115 ~]#cd /opt [root @115 ~]#wget https://bitnami.com/redirect/to/39039/bitnami-gitlab-8.8.4-0-linux-x64-installer.run

Rainbond对接私有源码仓库(Git、Svn)

允我心安 提交于 2019-12-18 00:17:24
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 本篇文章主要讲解Rainbond如何获取私有源代码仓库进行源码构建。 原理解读 通过自定义源码的方式创建应用 当你填写Git地址时,平台会自动判断地址的协议,如果是HTTP的Git地址,平台会提示你输入Git仓库的用户名和密码,如果是公开项目,用户名密码可以省略。当输入的Git地址是SSH协议时,平台会提示你将Rainbond的SSH公钥复制到Git仓库中。Rainbond会为每个团队生成独立的公钥以避免多团队密钥冲突。 当你填写Svn代码地址时,平台提示输入账号名和密码,如果是私有仓库,请务必输入账号。 操作流程 本文主要讲解通过 SSH 公钥的方式对接私有部署的Git仓库,以 GitLab 为示例进行说明。 Gitlab创建新项目 如果你已有项目,此步骤跳过 新建项目 填写项目名称 创建示例代码 切换到SSH地址后,需要记住项目的SSH地址,后续创建应用时需要用到,这里的地址是 git@172.16.210.205:test/helloworld.git 新建一个index.html 的文件,内容为 hello world,hello goodrain! 提交。 配置SSH公钥对接私有仓库 获取公钥 进入【创建应用】-【从源码创建】-【自定义源码】,将项目的SSh协议的地址复制到【Git仓库地址】栏中时

How to change the project owner in gitlab

徘徊边缘 提交于 2019-12-17 23:22:18
问题 How can I change the project owner in gitlab? There are opions in project settings but in "transfer" field it does not recognize any username or anything. Is it possible at all to change the owner-permissions and root-privileges? 回答1: TL;DR Move your project to a new group where both you and the other user are owners, then the other user must transfer it to his own namespace. Background The other answers obviously do not work to transfer a project to a different user, although the comments