gitlab-shell | Replacement for gitolite This repo is a mirror of https://gitlabcom/gitlab-org/gitlab-shell/

 by   gitlabhq Go Version: v14.23.0 License: MIT

kandi X-RAY | gitlab-shell Summary

kandi X-RAY | gitlab-shell Summary

gitlab-shell is a Go library. gitlab-shell has no bugs, it has a Permissive License and it has low support. However gitlab-shell has 5 vulnerabilities. You can download it from GitHub.

Replacement for gitolite. This repo is a mirror of
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              gitlab-shell has a low active ecosystem.
              It has 504 star(s) with 314 fork(s). There are 77 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              gitlab-shell has no issues reported. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of gitlab-shell is v14.23.0

            kandi-Quality Quality

              gitlab-shell has 0 bugs and 0 code smells.

            kandi-Security Security

              gitlab-shell has 5 vulnerability issues reported (0 critical, 1 high, 4 medium, 0 low).
              gitlab-shell code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              gitlab-shell is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              gitlab-shell releases are not available. You will need to build from source code and install.
              It has 9851 lines of code, 442 functions and 122 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gitlab-shell
            Get all kandi verified functions for this library.

            gitlab-shell Key Features

            No Key Features are available at this moment for gitlab-shell.

            gitlab-shell Examples and Code Snippets

            No Code Snippets are available at this moment for gitlab-shell.

            Community Discussions

            QUESTION

            GitLab Runner fails to upload artifacts with "invalid argument" error
            Asked 2022-Feb-08 at 15:22

            I'm completely new to trying to implement GitLab's CI/CD pipelines, but it's been going quite well. In fact, for my ASP.NET project, if I specify a Publish Profile in the msbuild command that uses Web Deploy, it actually deploys the code successfully to the web server.

            However, I'm now wanting to have the "build" job create artifacts which are uploaded to GitLab that I can then subsequently deploy. We're using a self-hosted instance of GitLab, for which I'm not an admin, but I can speak to the admin if I know what I'm asking for!

            So I've configured my gitlab-ci.yml file like this:

            ...

            ANSWER

            Answered 2022-Feb-08 at 15:22

            After countless hours working on this, it seems that ultimately the issue was that our internal Web Application Firewall was blocking some part of the transfer of artefacts to the server, or the response back from it. With the WAF reconfigured not to block traffic from the machine running the GitLab Runner, the artefacts are successfully uploaded and the job succeeds.

            This would have been significantly easier to diagnose if the logging from GitLab was better. As per my comment on this issue, it should be possible to see the content of the response from the GitLab server after uploading artefacts, even when the response code is 200.

            What's strange - and made diagnosing the issue even harder - is that when I worked through the issue with the admin of our GitLab instance, digging through logs and running it in debug mode, the artefact upload process was uploading something successfully. We could see, for example, the GitLab Runner's log had been uploaded to the server. Clearly the WAF's blocking was selective and didn't block everything in both directions.

            Source https://stackoverflow.com/questions/70880840

            QUESTION

            Upgraded gitlab runner throws `Service LoadBalancer External Address not yet available`
            Asked 2022-Feb-01 at 22:31

            I am running a kubernetes single node cluster and upgraded my gitlab 14.3.2 to 14.7.0 using helm chart. This is my values.yaml file, which worked before perfectly...

            ...

            ANSWER

            Answered 2022-Feb-01 at 22:31

            Got the same issue. I found out a service was misconfigured, lookup into the chart and found out it was about session server.

            Then I simply disabled the sessionServer, that should be disabled by default (cf https://gitlab.com/gitlab-org/charts/gitlab-runner/-/commit/477f145bedcb68690d723826831d9c8c4f5b2d09) and I don't need it and it did the trick.

            Source https://stackoverflow.com/questions/70885551

            QUESTION

            when I click a project : 500 Whoops, something went wrong on our end
            Asked 2021-Oct-28 at 16:29

            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:29

            To 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.

            Source https://stackoverflow.com/questions/69525251

            QUESTION

            GitLab global post-receive server hook for all repositories not executed after CI job completion
            Asked 2021-Oct-09 at 17:47
            Context

            After setting up a GitLab server, GitLab runner CI, and creating a test-repository that completes a CI-job successfully, I was experiencing some difficulties in ensuring a post-receive script is completed after the CI is finished successfully on the test repository commit.

            MWE

            The MWE does the complete deployment, and uploads a repository to the GitLab server and runs the CI on the repository. However, it is not yet generalised well, hence it has (at least) the following requirements: System: Ubuntu 20.04, Architecture:AMD64.

            ...

            ANSWER

            Answered 2021-Oct-09 at 17:47

            The issue was that I was twofold:

            1. I created the post-receive script inside the linux user, instead of inside the docker.
            2. I was looking for the output of the post-receive script in the wrong location. I assumed that it would produce an output in the same directory as the script is located. But the post-receive script is called from the root of the .git directy, hence that is where the output is created.

            Initially I tried to overcome the issue of 2 by using an absolute path, but issue 1 implied that the absolute path that I had chosen did not actually exist inside the Docker container. Therefore, no output was created, (and I was looking in the wrong place for that output on the Linux device, instead of in the Docker container).

            The manual solution I found was: First get the Docker container id with: sudo docker ps -a, which returned ... ca3ba74eb832 .... Then open the docker inside the terminal with:

            Source https://stackoverflow.com/questions/69507475

            QUESTION

            Possible to modify generated helm template?
            Asked 2021-Sep-03 at 11:40

            I'm using a static yaml file to install gitlab. Therefore I run

            ...

            ANSWER

            Answered 2021-Sep-03 at 11:40

            In general, it's hard to modify the output of a Helm chart. You can configure things the chart author has specifically allowed using Helm template syntax but not make arbitrary changes.

            Typically I would expect a chart to not include an explicit namespace: at all, and to honor the helm install --namespace option (helm template has a similar option). Configuring a Service is extremely common and I would expect the chart to have settings for that.

            If you're using the official GitLab cloud native Helm Chart then it has a lot of settings, including specifically for the GitLab Shell chart. In your values.yaml file you should be able to specify

            Source https://stackoverflow.com/questions/69042024

            QUESTION

            Gitlab with Apache 2.4 gives 502: AH01102: error reading status line from remote server 127.0.0.1:8080
            Asked 2021-Feb-04 at 13:50

            I am not a server admin, so I do not configure Apache Servers on a daily basis.

            But I want to use Gitlab on our server with SSL and Apache 2.4.6. (httpd on CentOS 7).

            So far I have added the certificates (.pem) and turned on SSL.

            head -30 /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml

            ...

            ANSWER

            Answered 2021-Feb-04 at 13:50

            Same answer than on serverfault:

            There was a problem in the Apache configuration:

            Source https://stackoverflow.com/questions/65992411

            QUESTION

            Find source branch when creating Tag in GitLab (using gitlab-ci.yml)
            Asked 2020-May-27 at 01:22

            I am currently trying to auto-increment the version, append SNAPSHOT to it and commit to the branch the given tag was created from using GitLab 12.9.2 and GitLab-Shell 12.0.0.

            I know, that tags (especially release-tags) are supposed to be created from master, but since I might be getting a develop- or other branches, that I'd like to tag commits on, I wanted to keep the ability to tag a given commit, build, deploy the corresponding artifact (to Nexus), auto-increment the version (e.g. from 0.1.3 to 0.1.4-SNAPSHOT) and commit this to the branch the tag has been created from.

            While all other steps work, I fail at the last one, because I cannot find the proper environment variable, which refers to the commit (and branch) the tag was created from.

            Here is an excerpt from the CI-file:

            ...

            ANSWER

            Answered 2020-May-27 at 01:22

            A useful trick I like using is to run the printenv Linux command from a pipeline job. This will print all environment variables, including GitLab built-in variables to stdout. Then you can look through these and pick the one you want.

            From what I can see, the ones that might help you are the commit SHA or commit message.

            Using Commit SHA
            • CI_COMMIT_SHA
            • CI_COMMIT_SHORT_SHA = first 8 digits of CI_COMMIT_SHA

            CI_COMMIT_SHA refers to the commit on the branch from which you created the tag. Once you have the commit ID, you can use the GitLab REST API (e.g. using cURL, python requests or python-gitlab) to pull the information you need. Keep in mind that a commit may belong to multiple branches, so you'll need to figure out which one you want to target.

            Source https://stackoverflow.com/questions/62033350

            QUESTION

            Gitlab : Spawning error : "File is a symlink that does not point to a valid file (RuntimeError)"
            Asked 2020-May-14 at 12:23

            Having a working gitlab instance on an Ubuntu 18.04 server for abouth 2 months, it now refuse to swpan due to the following 2 errors in /var/log/nginx/error.log

            ...

            ANSWER

            Answered 2020-May-14 at 12:23

            This is almost certainly a permissions error.

            Make sure that whatever file is readable: chmod a+r /opt/gitlab/embedded/service/gitlab-rails/config/database.yml (according to the comments you already did this) AND

            Make sure that all the directories are executable, which for directories allows cd'ing into that directory:

            Source https://stackoverflow.com/questions/61587787

            QUESTION

            Curl Upload-File inside Shell Runner
            Asked 2020-May-06 at 17:24

            I am trying to upload a single file via curl from within a gitlab-shell-runner.

            Basically I need to use this command:

            ...

            ANSWER

            Answered 2020-May-06 at 17:24

            As mentioned in "Running cURL on 64 bit Windows" you are running a CmdLet called Invoke-WebRequest, which has a curl alias in Powershell.
            Start by removing it:

            Source https://stackoverflow.com/questions/61639755

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install gitlab-shell

            You can download it from GitHub.

            Support

            See CONTRIBUTING.md.See the beginner's guide.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/gitlabhq/gitlab-shell.git

          • CLI

            gh repo clone gitlabhq/gitlab-shell

          • sshUrl

            git@github.com:gitlabhq/gitlab-shell.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link