gitlab

git branch workflow policy

不问归期 提交于 2019-12-09 18:44:03
问题 I am new to git and understand a little bit about Git. My company is currently have 1 program and the program divides into 5 products. each product is handling by different team. Currently my company git have 5 branches such as : dev = this branch is for developer to build program (dev.program.com) test(alpha) = this branch is for tester to test the program (test.program.com) staging(beta) = this branch is for tester test the program (double check of error ) and client test the program. (stg

Using GitLab behind nginx enabled basic_auth?

你说的曾经没有我的故事 提交于 2019-12-09 16:28:16
问题 I've successfully installed GitLab for management of private repositories (it's quite awesome!). The problem I am having is by default, Gitlab login is presented when anyone hits my subdomain. I would like to protect the entire area with a basic_auth layer before the user gets the GitLab login screen. Unfortunately, this breaks my ability to push/pull from GitLab when it's enabled. my nginx config to enable basic_auth: auth_basic "Restricted"; auth_basic_user_file htpasswd; Any ideas on how I

GitLab配置`https`链接

时光总嘲笑我的痴心妄想 提交于 2019-12-09 16:10:26
GitLab配置 https 链接 需求:队自建的gitlab在内网内运行,ip为192.168.1.90,现增加https链接,保证代码安全。 申请域名和证书: 至阿里云申请域名,cloud.cn,并申请为本域名使用的证书,友情提示:有免费证书可以使用。 下载证书: 实名认证之后,阿里签发证书后,即可下载证书: gitlab使用nginx做反向代理,顾下载证书for nginx,下载之后有两个文件, 在为gitlab配置证书的时候,我们是使用crt的证书,直接重命名pem文件为,my.crt即可。 配置gitlab # vim /etc/gitlab/gitlab.rb external_url 'https://cloud.cn' nginx['enable'] = true nginx['redirect_http_to_https'] = true #http重定向到https nginx['redirect_http_to_https_port'] = 80 nginx['redirect_http_to_https'] = true #http重定向到https,使用http的访问会自动重定向到https; nginx['redirect_http_to_https_port'] = 80 其余的配置其实都不需要,包括: nginx['ssl_certificate']

How to access GitLab issues using CURL?

我只是一个虾纸丫 提交于 2019-12-09 14:34:51
问题 I'd like to get a list of the issues for the project YYYYYY and a username XXXXXX . curl --header "PRIVATE-TOKEN: myownprivatetoken" "https://gitlab.com/api/v3/projects/YYYYYY/issues" curl --header "PRIVATE-TOKEN: myownprivatetoken" --header "SUDO: XXXXXX" "https://gitlab.com/api/v3/projects/YYYYYY/issues" curl --header "PRIVATE-TOKEN: myownprivatetoken" "https://gitlab.com/api/v3/XXXXXX/projects/YYYYYY/issues" But they only return: {"message":"404 Project Not Found"} or <html><body>You are

Error installing charlock_holmes : Error installing GITLAB

放肆的年华 提交于 2019-12-09 14:18:30
问题 I am trying to install GITLAB. I get this error executing " sudo gem install charlock_holmes --version '0.6.9' " (section Install Gems) GEOGIT:/geogit/Administrative_Tools # sudo gem install charlock_holmes --version '0.6.9' Building native extensions. This could take a while... ERROR: Error installing charlock_holmes: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9 extconf.rb checking for main() in -licui18n... no which: no brew in (/usr/sbin:/bin:/usr/bin:/sbin) checking for

Can we use the Github mac app with GitLab?

a 夏天 提交于 2019-12-09 14:05:50
问题 I like the GitHub Mac app, which I use with my GitHub account. I have joined a GitLab project and I was wondering whether I can use the GitHub app with a GitLab repository. I found a post that discuss that the Windows GitHub app works with GitLab and one that show how to add a repo. Both these posts gave me hope that the GitHub Mac App would work with GitLab. I also see that you can use BitBucket with the GitHub Mac app, but I don't understand whether and how to link a GitLab repository to my

“Host key verification failed” on Gitlab_ci although ssh_key is present

家住魔仙堡 提交于 2019-12-09 13:40:10
问题 "Host key verification failed." on Gitlab_ci when running "ssh name@server" Here's a part of my gitlab_ci which is supposed to login to my server and run scripts from the repo: script: - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) - eval $(ssh-agent -s) - ssh-add <(echo -e "$SSH_PRIVATE_KEY") - echo "debug" - echo "$SSH_PRIVATE_KEY" # all is ok here, it'll be printed - echo "debug" # - here comes an error - (cat ./script/script1.sh) | ssh -t -t $SSH_USERNAME@

GitLab sidekiq failing test

那年仲夏 提交于 2019-12-09 12:58:06
问题 I am following the instructions here: https://github.com/gitlabhq/gitlabhq/blob/4-1-stable/doc/install/databases.md When I try to run the tests: sudo -u gitlab -H bundle exec rake gitlab:env:info RAILS_ENV=production sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production The first test returns orange headers, the second test shows an error with Sidekiq: Checking Sidekiq ... Running? ... no Try fixing it: sudo -u gitlab -H bundle exec rake sidekiq:start For more information see:

ImagePullBackOff error Google Kubernetes Engine

北城余情 提交于 2019-12-09 11:56:33
问题 I know a lot of people already had similar question, i read a few of them, but found nothing what actualy helped me so far. I have a gitlab with private repo enabled, I also use Google Kubernetes Engine. I have a few Docker container in my private repo, and I want to deploy one of them to the Kubernetes Engine. I have created a secret with kubectl create secret generic db-user-pass --from-file=./username.txt --from-file=./password.txt I also tried kubectl create secret docker-registry name -

Gitlab - Xcode Can't connect with remote repository

谁说我不能喝 提交于 2019-12-09 08:11:00
问题 I am having troubles when I connect with my repository through Xcode. I have a Gitlab version (full pre-)installed on TurnkeyLinux Virtual Appliance on a remote server. In the Gitlab Web interface, I've created a new test user: "testuser" with a password "password" and a new project "testproject". This user was assigned to this project. The git url project are: HTTP: http://example.com/testuser/testproject.git SSH: git@example.com:testuser/testproject.git I can see the repositories folder