gitlab

Gitlab加入LDAP认证

六眼飞鱼酱① 提交于 2019-12-18 17:10:59
如果企业大大小小系统较多,每个系统都给用户单独配置一账户。这样各个系统的账户信息都要单独记忆,比较繁琐,而且账户信息易忘。所以加入集成 LDAP 统一认证,域控管理。这里对Gitlab应用系统结合LDAP认证,前提是企业内部已搭建好AD域服务。 Gitlab配置LDAP Gitlab已安装好,安装的CE版本。Gitlab配置LDAP服务要在配置文件中修改,无法像Jenkins加入LDAP那样安装一LDAP插件,然后配置LDAP信息即可。Gitlab中需在默认的配置文件/etc/gitlab/gitlab.rb中修改LDAP配置项。默认LDAP服务是关闭的,配置项 gitlab_rails['ldap_enabled'] = false。现开启LDAP服务并配置,修改以下配置项: gitlab_rails['ldap_enabled'] = true ###! **remember to close this block with 'EOS' below** gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' main: # 'main' is the GitLab 'provider ID' of this LDAP server label: 'LDAP' host: '10.10.10.60' port: 389 uid:

gitlab get tar of a specific branch via command line

匆匆过客 提交于 2019-12-18 12:24:52
问题 I'm using gitlab. When I go into the interface, on each branch I can download the source code as a zip, tar or whatsoever. I am making rpm spec files for which I would need the possibility to download the tar ball using command line. since I added my rsa key i can do git clone without problems: git clone http://gitlab/group/project.git Cloning into 'project'... remote: Counting objects: 1885, done. remote: Compressing objects: 100% (826/826), done. remote: Total 1885 (delta 1194), reused 1496

Not able to “git pull” - Host key verification failed

為{幸葍}努か 提交于 2019-12-18 12:17:47
问题 I've got root access to our production server and I want to deploy the latest version in git to the server but I'm running into the error below when I "git pull" on the folder I want to update. I've browsed around a bit, but can't find a clear answer on what to do.. The staging server runs on the same machine, but just in a different folder and when I pull on that folder it all goes fine. I'm not very experienced when it comes to Linux, so please help me out with a clear answer on how to fix

git push gives fatal: unable to update url base from redirection:

柔情痞子 提交于 2019-12-18 12:13:30
问题 I did commit successfully in my local repository. When I try to do: git push https://gitlab.com/priceinsight/jmt4manager/compare/develop...2-retrieve-list-userrecord# 2-retrieve-list-userrecord -v I got this error: Pushing to https://gitlab.com/priceinsight/jmt4manager/compare/develop...2-retrieve-list-userrecord# fatal: unable to update url base from redirection: asked for: https://gitlab.com/priceinsight/jmt4manager/compare/develop...2-retrieve-list-userrecord#/info/refs?service=git-receive

Open a file directly from a GitLab private repository

喜欢而已 提交于 2019-12-18 11:07:55
问题 I have a private repository on a GitLab server and using the SSH I can pull a project using git clone. But I want to run a script on linux command line directly from the server (more specific, a Drupal / Drush .make file) I tried to run it using the raw file: drush make http://server.com/user/project/raw/master/file.make (for the convenience of non Drupal users let’s say) curl http://server.com/user/project/raw/master/file.make Without success. Of course, it returns me the login page. Is it

why did gitlab 6 switch back to unicorn?

有些话、适合烂在心里 提交于 2019-12-18 10:54:26
问题 Gitlab 6.0 was released yesterday. I am curious to know why they switched to Unicorn from Puma. Versions prior to 5 were using Unicorn. I thought switch to Puma was for the better. Is there a technical reason for this switch? 回答1: GitLab B.V. CEO here, I agree with Hongli his comment that "If there are issues then they are likely in Gitlab's code.". We tried to fix them but GitLab is one of the largest open source Rails applications and the issues where hard to reproduce. So in the end we

Gitlab prompts for password while push for git user

丶灬走出姿态 提交于 2019-12-18 10:39:43
问题 I installed gitlab on my servers at linode. All services of gitlab are working fantastic. I am able to login, create users, repos etc. But the problem I am facing is when I try to push a repo it prompts a password for the git user as follows: git@gitlab.myserver.com's password I have followed the instructions of installing gitlab at: https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md and have disable the login got the user git using the following line mentioned in

GitLab CI: iOS project issue (permission denied)

时光毁灭记忆、已成空白 提交于 2019-12-18 09:43:31
问题 Trying GitLab CI for my iOS project, I follow this, this and this tutorial. Two questions: What is wrong with my gitlab-runner (with "shell" registration) since GitLab CI throws the following error: Running with gitlab-runner 11.9.0 (692ae235) on MyApp runner with shell DsaBC-oQ Using Shell executor... Running on MyComputer.network.provider... mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp: Permission denied mkdir: /Users/myusername/builds/DsaBC-oQ/0/username/myproj.tmp:

Using 'git checkout -f' to deploy files from a bare git repo in Gitlab

泪湿孤枕 提交于 2019-12-18 07:12:57
问题 I am in the process of implementing Gitlab at my workplace and transitioning everyone over to it for better code reviews, issue management directly linked to commits, and integration with user stories on Pivotal tracker. My current setup for a test app is as such: Git bare repo with all the code for my PHP based web-app found in: /var/opt/gitlab/git-data/repositories/git/test-app.git Deploy directory is: /var/www/test-app In the Git repo directory, I did the following: export GIT_WORK_TREE=

How to create a gitlab project from terminal or command line

时光毁灭记忆、已成空白 提交于 2019-12-18 07:04:40
问题 I have internal setup gitlab server. I want to run separate ant script and create a project in that gitlab server. (without creating new project in gitlab UI) In the ant i can use exec executable and run the bash commands. And also how to send the Visibility Level and other parameters to gitlab server to create the project? 回答1: Would would need to use the GitLab API to create a project POST /projects One of the optional parameters is: visibility_level (optional): 0 is Private (Project access