gitlab

Gitlab Configuration Issues:: NGINX Unicorn Port Conflict

余生长醉 提交于 2019-12-21 04:07:09
问题 I have managed to partly setup Gitlab on a Linux CentOS server with Apache, Git, PHP, PostGreSQL and MySQL. I am running the Chef Cookbook version. I got the rpm from here. I wanted to use it to manage my Git repo better and more visually and this seemed to be a good choice. But now I run into issues getting it to work. Just to make it really work and update all files I decided to rerun the configuration using gitlab-ctl reconfigure . Second run did work: Chef Client finished, 4 resources

Search for code or text in GitLab

扶醉桌前 提交于 2019-12-21 03:23:48
问题 Is it possible to search for code or text in GitLab inside of files? I can search for files, issues, milestones, etc., but could not find a way to search for code in source files or text in the documentation i.e .doc files. 回答1: It was announced in 5.2: https://about.gitlab.com/2013/05/22/gitlab-5-dot-2-released/ And I can confirm code search is working with 8.4 来源: https://stackoverflow.com/questions/35087844/search-for-code-or-text-in-gitlab

Gitlab-runner local build - login from non TTY device

跟風遠走 提交于 2019-12-21 03:09:57
问题 I'm trying to build my project locally using gitlab-runner on Linux. docker-build: stage: build image: docker:latest script: - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY # user "gitlab-ci-token" is automatically created by GitLab - docker build -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME" target/ - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME" Unfortunately my attempts end with error about "docker login" not being able to perform interactive login from non-TTY

DevOps Git及GitLab Docker

只谈情不闲聊 提交于 2019-12-20 19:50:17
这里写自定义目录标题 欢迎使用Markdown编辑器 新的改变 功能快捷键 合理的创建标题,有助于目录的生成 如何改变文本的样式 插入链接与图片 如何插入一段漂亮的代码片 生成一个适合你的列表 创建一个表格 设定内容居中、居左、居右 SmartyPants 创建一个自定义列表 如何创建一个注脚 注释也是必不可少的 KaTeX数学公式 新的甘特图功能,丰富你的文章 UML 图表 FLowchart流程图 导出与导入 导出 导入 1 DevOps介绍 1.1 什么是DevOps DevOps是Development和Operations两个词的缩写,引用百度百科的定义: 1531964283876 ​ DevOps是一种方法或理念,它涵盖开发、测试、运维的整个过程。DevOps是提高软件开发、测试、运维、运营等各部门的沟通与协作质量的方法和过程,DevOps强调软件开发人员与软件测试、软件运维、质量保障(QA)部门之间有效的沟通与协作,强调通过自动化的方法去管理软件变更、软件集成,使软件从构建到测试、发布更加快捷、可靠,最终按时交付软件。 1532100303619 1.2 DevOps工具链 ​ DevOps兴起于2009年,近年来由于云计算、互联网的发展,促进了DevOps的基础设施及工具链的发展,涌现了一大批优秀的工具,这些工具包括开发、测试、运维的各各领域,例如:GitHub

GitLab-CI: Cannot link to a non running container

瘦欲@ 提交于 2019-12-20 14:06:06
问题 I've tried to get my setup work with gitlab-ci. I have a simple gitlab-ci.yml file build_ubuntu: image: ubuntu:14.04 services: - rikorose/gcc-cmake:gcc-5 stage: build script: - apt-get update - apt-get install -y python3 build-essential curl - cmake --version tags: - linux I want to get a ubuntu 14.04 LTS with gcc and cmake (apt-get version is to old) installed. If i use it locally (via docker --link command) everything works, but when the gitlab-ci-runner will process it i get the following

Pylint badge in gitlab

妖精的绣舞 提交于 2019-12-20 10:45:04
问题 Gitlab has functionality to generade badges about build status and coverage percentage. Is it possible to create custom badge to display Pylint results? Or just display this results in README.md? I already have CI job for Pylint 回答1: I have written a python badge generation package that produces badges very visually similar to the main badge services. It is highly flexible, you can import and use in your python code, or run from the command line. I use this in GitLab CI to display pylint and

GitLab issuing temporary IP bans - 403 forbidden

北城余情 提交于 2019-12-20 10:39:30
问题 My GitLab instance setup will occasionally put in place an IP ban on our own IP address, resulting in all our users in the office getting 403 / Forbidden on any web page or git request. The ban is being put in place as a result of repeated errors authenticating, which is a separate problem altogether, but I would like to prevent our own IP address from being IP banned. It lasts for about one hour. In the nginx logs, nothing unusual pops up in the gitlab_access.log or gitlab_error.log files.

Gitlab-CI runner: ignore self-signed certificate

跟風遠走 提交于 2019-12-20 10:32:29
问题 gitlab-ci-multi-runner register gave me couldn't execute POST against https://xxxx/ci/api/v1/runners/register.json: Post https://xxxx/ci/api/v1/runners/register.json: x509: cannot validate certificate for xxxx because it doesn't contain any IP SANs Is there a way to disable certification validation ? I'm using Gitlab 8.13.1 and gitlab-ci-multi-runner 1.11.2. 回答1: Based on Wassim's answer, and gitlab documentation about tls-self-signed and custom CA-signed certificates, here's to save some

Git “does not appear to be a git repository” ip and port instead of domain?

假如想象 提交于 2019-12-20 10:32:16
问题 I'm trying to commit my first Git repository to a gitlab instance, which I've set up on a debian-VM. Everything is going to happen via local network. The following commands are shown in gitlab after creating a new repo. mkdir test cd test git init touch README git add README git commit -m 'first commit' git remote add origin git@10.200.3.248:1337:Matt/test.git git push -u origin master After entering git push -u origin master this happens: git@10.200.3.248's password: fatal: '1337:Matt/test

Git: How to checkout merge request locally, and create new local branch?

谁说胖子不能爱 提交于 2019-12-20 10:28:05
问题 I have gitlab repository there I need to test every merge request locally, before merging to target branch. How can I pull/fetch merge request as a new branch? 回答1: Pull merge request to new branch git fetch origin merge-requests/REQUESTID/head:BRANCHNAME i.e git fetch origin merge-requests/10/head:file_upload Checkout to newly created branch git checkout BRANCHNAME i.e ( git checkout file_upload ) OR with single command git fetch origin merge-requests/REQUESTID/head:BRANCHNAME && git