gitlab

Gitlab部署及基础配置

北慕城南 提交于 2020-01-13 00:31:06
Gitlab安装 基础包安装 yum install -y curl policycoreutils-python openssh-server systemctl enable sshd systemctl start sshd firewall-cmd --permanent --add-service=http systemctl reload firewalld 安装 postfix yum install postfix systemctl enable postfix systemctl start postfix 添加Gitlab包的yum库 curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash 安装gitlab EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ce vi /etc/gitlab/gitlab.rb 修改 EXTERNAL_URL=“http://IP:port” 汉化 下载最新汉化包 git clone https://gitlab.com/xhang/gitlab.git 下载指定版本汉化包 git clone https:/

How to prevent Gitlab from creating extra merge commit on branch merge

匆匆过客 提交于 2020-01-12 14:56:31
问题 I use GitLab in my project. I'm exploring Merge Requests feature. I created a topic_branch from master . Made a bunch of commits on topic_branch . Pushed topic_branch to remote. Created a merge request on master to pull changes from topic_branch . On accept merge in Gitlab, master pulled all the commits and also created a merge commit which is horrible to see duplication of code. I should have created a squash of commits on branch and then created merge request. But still master would have

How to prevent Gitlab from creating extra merge commit on branch merge

浪子不回头ぞ 提交于 2020-01-12 14:54:21
问题 I use GitLab in my project. I'm exploring Merge Requests feature. I created a topic_branch from master . Made a bunch of commits on topic_branch . Pushed topic_branch to remote. Created a merge request on master to pull changes from topic_branch . On accept merge in Gitlab, master pulled all the commits and also created a merge commit which is horrible to see duplication of code. I should have created a squash of commits on branch and then created merge request. But still master would have

GitLab: Can't push code to server?

心已入冬 提交于 2020-01-12 05:27:46
问题 I've installed GitLab on an Ubuntu Server. Everything seems to work fine except I can't push/pull/clone to/from the server. When I push I get the general error message: fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I've tried everything from hours of googling, but I can't seem to locate a problem. sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production Runs fine, OK across the board! I can SSH into git

What is the special gitlab-ci-token user?

☆樱花仙子☆ 提交于 2020-01-12 04:07:30
问题 The docs for gitlab's container registry (https://gitlab.com/help/container_registry/README.md) provide a config example with this instruction: - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.example.com and this explanation: You have to use the credentials of the special gitlab-ci-token user with its password stored in $CI_BUILD_TOKEN in order to push to the Registry connected to your project. This allows you to automated building and deployment of your Docker images. I cannot

What is the special gitlab-ci-token user?

安稳与你 提交于 2020-01-12 04:07:07
问题 The docs for gitlab's container registry (https://gitlab.com/help/container_registry/README.md) provide a config example with this instruction: - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.example.com and this explanation: You have to use the credentials of the special gitlab-ci-token user with its password stored in $CI_BUILD_TOKEN in order to push to the Registry connected to your project. This allows you to automated building and deployment of your Docker images. I cannot

How to transfer project from one group to a user in gitlab CE 9?

假装没事ソ 提交于 2020-01-12 04:04:36
问题 I want to transfer a project from a group to another user. For e.g from https://gitlab.local/groupname/projectname to https://gitlab.local/userA/projectname How can I acheive this? I have gitadmin permissions. 回答1: Go to Settings ▶ General ▶ Advanced ▶ Transfer project ▶ Select a new namespace 来源: https://stackoverflow.com/questions/49437030/how-to-transfer-project-from-one-group-to-a-user-in-gitlab-ce-9

Easy way to setup GitLab with existing Gitolite configuration

喜你入骨 提交于 2020-01-12 01:37:28
问题 I have an existing Gitolite configuration with many users and repositories. It is setup in the default way as the Gitolite installation guide suggests. Now I would like to add GitLab to be able to do code reviews and bug tracking. What's the most convenient way to achieve this? 回答1: Original answer (January 2013) You can follow the standard installation, and indicate in your gitlab.yml config file the location of your gitolite repo, as well as the gitolite admin user. However, GitLab requires

搭建getlab

拥有回忆 提交于 2020-01-12 01:17:03
说明:本人书写该篇博客原因主要有两个:一、方便本人查阅,二、为全小白且想学微服务的朋友进行查阅。以下内容主要来源于 余胜军 ,本人在他基础上将步骤进行细化,使小白也能看懂,请大家在转载的时候也引入余胜军的链接 Getlab 比较耗内存,服务器的内存建议 2G 以上 使用docker 下载 getlab 镜像文件 Docker pull beginor/gitlab-ce:11.0.1-ce.0 创建 gitlab 的配置( etc )、日志 (log) 、数据( data )三个目录 mkdir -p /mnt/gitlab/etc mkdir -p /mnt/gitlab/log mkdir -p /mnt/gitlab/data 运行 docker 容器(需要等镜像文件下载完) docker run \ --publish 8443:443 \ --publish 8090:80 \ --name gitlab \ --privileged=true \ --restart unless-stopped \ -v /mnt/gitlab/etc:/etc/gitlab \ -v /mnt/gitlab/log:/var/log/gitlab \ -v /mnt/gitlab/data:/var/opt/gitlab \ beginor/gitlab-ce:11.0.1-ce.0

[DevOps + docker + CI/CD] 3.Jenkins 2.x 在 docker方式下的gitlab凭证添加与验证

血红的双手。 提交于 2020-01-11 17:29:13
1. 登录至gitlab服务器 2. 找到Access Token生成的路径,如下图所示 3. 配置Gitlab的Access Token访问凭证 4. 复制新生成的Access Token填入Jenkins对应的框内 5. 点击应用,然后保存 至此,已经完成Jenkins访问Gitlab凭证的配置,等待后续测试建立新的Jenkins打包任务发布即可。 来源: CSDN 作者: CodeCaptain 链接: https://blog.csdn.net/mimica/article/details/103936900