gitlab-ci-runner | GitLab Runner PROJECT IS DEPRECATED NOW , PLEASE | Continous Integration library
kandi X-RAY | gitlab-ci-runner Summary
kandi X-RAY | gitlab-ci-runner Summary
GitLab Runner PROJECT IS DEPRECATED NOW, PLEASE USE NEW GitLab Runner written in Go (previously named GitLab CI Multi Runner) INSTEAD
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Execute a shell command with the given options
- Gets all builds for a build
- Run the git command
- Encrypts a message using a string
- Register a runner
- Update a build
- register a runner
- Push a message to the build
- Unregister a runner
- Initialize configuration object
gitlab-ci-runner Key Features
gitlab-ci-runner Examples and Code Snippets
Community Discussions
Trending Discussions on gitlab-ci-runner
QUESTION
I had a problem with gitlab running podman commands with gitlab-runner user and I could not see the created containers with my user. I chaned the user as described in Change Gitlab CI Runner user.
I ran the gitlab pipeline again and it went successfully through 3 steps and created a podman pod and 2 other containers in it. Suddenly it stoped by a podman run for the last container. I checked the server and gave podman ps -a
but nothing happend after pressing enter and I could still write in command line!
I wrote podman images list
and I could see the images list (2 images have the same id and I can not remove them!!).
I tried sudo podman ps
and it worked!
Some commands just work and some commands are not working as rootless. my user can not do podman run
from Gitlab but on the server my user can run podman run hello-world
!
I get no error just it remains in that state and I have to cancle the job.
I am using centos 8, podman 3.3.1. sudo podman info:
...ANSWER
Answered 2021-Nov-18 at 19:56Is this problem reproducible? Why I am asking because I think it should not be the case with podman but a specific issue at your end.
QUESTION
I try to set up a CI environment on a local GitLab install.
I am testing basic shell commands that need to be run within the regular user (the value of $USER
) environment.
By default the gitlab-runner service is configured with --user gitlab-runner
.
So first I followed the answer provided at Change Gitlab CI Runner user to assign another user.
This seemed to work as the output of ps aux | grep runner
is as expected and I hit the clear_console
error from .bash_logout
described at https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4559.
After commenting out the content of .bash_logout
I now get the following error.
ANSWER
Answered 2021-Oct-03 at 00:35As Davide mentioned in the comments, when you update the user for gitlab-runner, you also need to update its working directory to ensure that it has permissions to that directory. Alternatively, you could grant the new user access to /home/gitlab-runner
, it's your choice. To install the gitlab-runner with a different user and working directory, the command is: gitlab-runner install --user=my_user --working-directory=/home/my_user
(reference)
QUESTION
Some time ago, our Gitlab (self-hosted) instance started to throw errors that the archives are too big:
ERROR: Uploading artifacts as "archive" to coordinator... too large archive id=something responseStatus=413 Request Entity Too Large status=413 token=something FATAL: too large
ERROR: Job failed: exit code 1
The only resolution ideas we found was to set the max build artifact size (it's under /admin/application_settings). This did not work for us, the error still occurred.
Reference articles:
- https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/3813
- https://dzone.com/articles/gitlab-ci-runner-artifacts-size-error-quottoo-larg
- https://www.kevinhooke.com/2018/07/30/gitlab-ci-runner-artifacts-size-error-too-large-archive/
- https://forum.gitlab.com/t/uploading-artifacts-too-large-archive-error-413/4867
- How to increase maximum artifacts size for Gitlab on-premises
ANSWER
Answered 2020-Oct-13 at 05:30The solution to this issue is to set the max build artifact size (under /admin/application_settings) and to increase the Gitlab NGINX client_max_body_size
property in the configuration file to something higher.
QUESTION
In my GitLab CI build, I want to:
- Start a docker container with local AmazonDB. Standard port layout: port
8000
in docker, port8000
exposed. Of course, everything works locally, I can connect (curl
,awc-cli
, Java code for Amazon DB, whatever you wish). - Use it for tests, i.e. connect to it as
--endpoint-url http://localhost:8000
(or any other mapped IP instead oflocalhost
).
.gitlab-ci.yml
looks like this:
ANSWER
Answered 2020-Feb-25 at 16:10There is actually no need in writing such a complex solution with manual docker run
/ docker stop
inside the -script
section. The slim and simple way is to use the local DynamoDB as service
.
With this script, local DynamoDB will be accessible via url from alias
of the services
element, i.e. dynamodb-local
for this example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gitlab-ci-runner
Install the gems for the runner:.
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