gitlab-ce | Version Control on your Server
kandi X-RAY | GitLab Community Edition Summary
kandi X-RAY | GitLab Community Edition Summary
Version Control on your Server. See and the README for more information
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gitlab-ce
GitLab Community Edition Key Features
GitLab Community Edition Examples and Code Snippets
Community Discussions
Trending Discussions on gitlab-ce
QUESTION
I'm in the process of migrating our internal GitLab-CE to GitLab-EE. When checking that CI pipelines work correctly, I noticed that the ones that clone repositories using CI_JOB_TOKEN did not work. After some debugging I managed track down the error to the actually git clone command. The command does not work if the access token is part of the clone URL. To test my hypothesis, I created a personal access token and tried to clone a repository using command
git clone https:\\myusername:accesstoken@gitlab.internal/myusername/project1.git
. The command fails with Authentication error (403 from gitlab nginx).
when I run the same command in interactive mode: git clone https:\\myusername@gitlab.internal/myusername/project1.git
and use my access token as password when I'm prompted the command works fine.
Any idea what the problem is. Is there some configuration setting that disallows the use of passwords/tokens as part of the URL.
P.S. Our server is using self-signed certificate at the moment, but I don't think that's the problem since the second command works fine.
...ANSWER
Answered 2022-Feb-18 at 08:30After some testing and googling I managed to find a workaround. Using a shell script in combination with environmental variable, the pipeline now works with following steps (.gitlab-ci.yml):
QUESTION
i want to implement CICD with gitlab and i want to do this with docker-compose and i wrote this docker-compose.yml but this isn't work and i cant connect to gitlab web. another way i recive this log from compose log :
...ANSWER
Answered 2021-Dec-12 at 10:42Do next steps from docker-compose.yml folder:
Creat
$ touch ./config/gitlab-runner/config.toml
Edit it with your editor
$ ./config/gitlab-runner/config.toml
Save file
Restart docker instance
$ docker-compose restart gitlab-runner
QUESTION
here is a diagreme explains what i do manually && what i want to automate
- connect to an on-premise gitlab-ce instance
- start a gitlab backup and wait for it to finish
- copy the backup files to azure blob and wait for it to finish
- copy the backup files from blob to azure vm and and wait for it to finish
- connect to azure vm and restore the backup
i want to automate those tasks that i do with an azure tool . can someone guide me to a direction where i can start looking?
can Azure Functions perform those kind of tasks??
thanks.
...ANSWER
Answered 2021-Nov-02 at 07:16Thank you Matt Stannett and Anand Sowmithiran. Posting your suggestions as an answer to help other community members.
You can achieve this using a Durable Azure Function with the function chaining pattern.
You need to automate the initiation of the gitlab backup and pushing that as a blob to Azure blob storage - this part needs to run on-prem, so you could use Powershell to this. Then, your Azure blob storage
trigger function
can pick up the backup blob and do the rest of the steps via initiating a durable function, it has to use Azure sdk to restore the backup inside Azure VM
You can refer to Create your first durable function in Python, Storage Providers for Azure Durable Functions, Azure Functions: How to manage Durable Functions with Blob Triggers?, and Automate Linux VM Customization Tasks Using CustomScript Extension
QUESTION
hellow every one i migrated gitlab-ce into a new instance with new domain name using backup/restore
my problem : when i click a project it gives me "500 Whoops, something went wrong on our end "
i installed the same gitlab-ce version in the new host which is 13.6.2
my gitlab status
...ANSWER
Answered 2021-Oct-28 at 16:29To fix this problem I had to migrate gitlab-secrets.json
from /etc/gitlab
too, because this file contains the database encryption key, CI/CD variables, and variables used for two-factor authentication.
If you fail to restore this encryption key file along with the application data backup, users with two-factor authentication enabled and GitLab Runner lose access to your GitLab server.
QUESTION
Note: My CI contains a code complexity checker which can be ignored. This question is mainly focused on SAST.
I have recently setup a SAST pipeline for one of my Gitlab projects. The Gitlab-ce and Gitlab-runner instances are self-hosted. When the SAST scan is completed, the downloaded artifacts / json reports all contain the same name gl-sast-report.json
. In this example, the artifacts bandit-sast and semgrep-sast both product gl-sast-report.json
when downloaded.
ANSWER
Answered 2021-Oct-27 at 15:54If you're using the pre-built SAST images, this isn't possible, even if you run the docker command manually like so:
QUESTION
Hello everyone I hope you're doing okay ! I'm facing a problem in gitlab-ce , i can not see image tags after migrating my gitlab to a new host
How did migrate my gitlab: backup the original gitlab and restore it in my new host
what did i change after the restore : i changed the external_url in gitlab.rb to a new one (i didn't keep the ip adress) i also changed registry_url
i also can't login to my registry using docker login http://gitlab.examlple.com:5005 it returns :
Error response from daemon: Get "https://gitlab.example.com:5005/v2/": http: server gave HTTP response to HTTPS client
i hope someone can help me with this issue
thank you all in advance
...ANSWER
Answered 2021-Oct-08 at 10:51Are you installing Gitlab from Omnimbus Repository? It seems like you do not follow the full document because it will ask you to issue or provide SSL certificate. It's not a good practice nowadays if you are still using HTTP instead of HTTPS but it's a good point to start if you don't need to care much about security as your registry password may be captured easily by attackers.
To enable HTTP protocol, can you try to disable redirect_http_to_https
. Besides, if your new Gitlab is the latest version, it should be registry_external_url
but not registry_url
anymore.
QUESTION
I change GitLab docker image to latest version but after run, service doesn't start and just log this, What should I do?
...ANSWER
Answered 2021-Sep-06 at 16:56The answer is already in your post:
It seems you are upgrading from major version 13 to major version 14. It is required to upgrade to the latest 14.0.x version first before proceeding. Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrading-to-a-new-major-version
This gives more information.
Ideally, you should:
- take a backup of your data folder
- upgrade to
13.12.11-ce
(the last minor of your current major release) - upgrade to
14.0.10-ce
(the first minor of the new major release) - upgrade to
14.2.3-ce
(your target, i.e. the last minor of the new major release)
Check here for an up-to-date list of docker images.
QUESTION
While writing an automated deployment script for a self-hosted GitLab server I noticed that my uninstallation script does not (completely) delete the GitLab server settings, nor repositories. I would like the uninstaller to completely remove all traces of the previous GitLab server installation.
MWE ...ANSWER
Answered 2021-Aug-17 at 15:31Stopping and removing the containers doesn't remove any host/Docker volumes you may have mounted/created.
QUESTION
I rencently upgraded my gitlab-ce to 13.12 because i saw this feature, and realised I don't have Packages & Registries in my settings. Is there anything i miss here ?
...ANSWER
Answered 2021-Aug-11 at 18:29Be aware that this is a GROUP LEVEL
setting and not a project level setting.
To change this select the Group containing the project, where you want this feature. Within the settings for the group, you will find a section called Packages and Registries
.
QUESTION
How do I bypass the LDAP login and remove the additional authentication for administrative tasks?
ProblemI can't enter admin mode. When I login using regular credentials and try to change some administrative settings, it asks for LDAP credentials to enter admin mode. The problem is that LDAP is too slow and is not working for me (I will fix this later).
ContextI'm configuring gitlab-ce 13.11.3-ce.0 locally as a demonstration. I have some things set up which I don't want to lose with a total reset. The admin user had regular authentication. Since I logged in through LDAP (I used the same username as the LDAP to log in) I cannot enter admin mode anymore, although I can login with the admin user using normal credentials.
I mixed the regular and LDAP credentials for the admin account.
What I tried:I tried to turn off LDAP login using the setting
gitlab_rails['ldap_enabled'] = false
at/etc/gitlab/gitlab.rb
but the form doesn't show up (the LDAP title appears, though).I tried to reset the user password using the
gitlab-rails console
.
...
ANSWER
Answered 2021-Jul-28 at 10:33As stated by the documentation, this authentication can be disabled easily using the following command:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GitLab Community Edition
To work on GitLab itself, we recommend setting up your development environment with the GitLab Development Kit. If you do not use the GitLab Development Kit you need to install and setup all the dependencies yourself, this is a lot of work and error prone. One small thing you also have to do when installing it yourself is to copy the example development unicorn configuration file:. Instructions on how to start GitLab and how to run the tests can be found in the development section of the GitLab Development Kit.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page