gitlab-ci-multi-runner | Please go | Continuous Deployment library
kandi X-RAY | gitlab-ci-multi-runner Summary
kandi X-RAY | gitlab-ci-multi-runner Summary
This repository is a mirror for automated DockerHub builds. Please go to:
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-ci-multi-runner
gitlab-ci-multi-runner Key Features
gitlab-ci-multi-runner Examples and Code Snippets
Community Discussions
Trending Discussions on gitlab-ci-multi-runner
QUESTION
I'm trying to implement a GitLab continuous integration (CI) pipeline with the following .gitlab-ci.yml
file:
ANSWER
Answered 2017-Feb-19 at 02:07This is complex problem.
The docker:latest
image is based on alpine
(Alpine Linux), which is built using musl-libc
. This system is very barebones, and as such doesn't have everything a full-fledged desktop Linux might have. In fact, dynamic executables need to be compiled specifically for this system.
docker-compose
is a Python application, bundled into a Linux executable using PyInstaller. These executables are really only expected to be able to run on the system which they were built. If you run an alpine
container, and apk add file
, you can see that the (dynamically-linked) executable you downloaded is expecting a specific interpreter.
QUESTION
GitLab's running in kubernetes cluster. Runner can't build docker image with build artifacts. I've already tried several approaches to fix this, but no luck. Here are some configs snippets:
.gitlab-ci.yml
...ANSWER
Answered 2017-Mar-18 at 05:37When using Kubernetes, you have to adjust your Build image to connect with the Docker engine.
Add to your build image:
QUESTION
gitlab-ci-multi-runner register
...ANSWER
Answered 2017-Jun-16 at 10:43Currently there is no possibility to run the multi runner with an insecure ssl option.
There is currently an open issue at GitLab about that.
Still you should be able to get your certificate, make it a PEM file and give it to the runner command using --tls-ca-file
To craft the PEM file use openssl.
openssl x509 -in mycert.crt -out mycert.pem -outform PEM
QUESTION
I have a gitlab-runner image as follows:
Dockerfile
...ANSWER
Answered 2017-Aug-10 at 06:08I continued my research and found the repository of the official maven docker images.
They solved a similar problem by creating a mvn-entrypoint.sh
. So I tried the same:
entrypoint.sh
QUESTION
(Please note i'm a total beginner in all Docker and CI in general)
I am trying to set up a simple CI environment with GitLab. I'm using a local GitLab runner which is configured to build and test in Docker. In registering the runner I chose the 'shell' option. This installation succeeded.
After pushing my code I got an email saying 'build failed'. In the build log I found the following:
...ANSWER
Answered 2019-May-10 at 11:35I'm using a local GitLab runner which is configured to build and test in Docker. In registering the runner I chose the 'shell' option
From the sounds of it, you have registered the gitlab-runner incorrectly for the mode you are after. You said you want to use a runner to build and test in Docker, however you have registered the runner in shell
mode.
To use the runner in Docker, follow the instructions set in the documentation. Make sure to set the runner executor to Docker when registering.
You'd also ideally remove the shell runner you have created.
If you have issues registering the runner, see this answer, which may also help with setting up your environment.
QUESTION
I'm currently using GitLab in combination with CI runners to run unit tests of my project, to speed up the process of bootstrapping the tests I'm using the built-in cache functionality, however this doesn't seem to work.
Each time someone commits to master, my runner does a git fetch
and proceeds to remove all cached files, which means I have to stare at my screen for around 10 minutes to wait for a test to complete while the runner re-downloads all dependencies (NPM and PIP being the biggest time killers).
Output of the CI runner:
...ANSWER
Answered 2019-May-02 at 15:21- Your script can't cache files outside of your project scope, creating a virtual environment instead and caching that allows you to cache your pip modules.
- Most important of all: Your test must succeed in order for it to cache the files.
QUESTION
I am trying to set up CI with gitlab. When I try to build locally, I get this error : xcodebuild: error: 'APP.xcworkspace' does not exist.
"APP" not being the real name. I am also using CocoaPods.
This happens after I run this command in terminal:
gitlab-ci-multi-runner exec shell build_project
I have checked and the file does exist in the same folder I call the command.
This is my .gitlab-ci.yml file:
...ANSWER
Answered 2017-Feb-24 at 07:53I have solved this now!!
I just had to update the cocoapods repo, se this link: https://github.com/CocoaPods/CocoaPods/issues/5077
Looks like your specs repo was edited at some point, and now git can't update it. I'd recommend deleting and re-creating your Specs repo:
pod repo remove master
and runningpod setup
QUESTION
I have a docker-compose.yml
file that starts up a simple HTTP echo service on port 8800
.
ANSWER
Answered 2018-Nov-29 at 10:26The container is running on the "docker host" which is, in your case, the other container that is supporting the Gitlab build:
QUESTION
I'm trying to register a gitlab runner on a new installation of gitlab (based on the omnibus rpm for centos7) but registration fails like this:
...ANSWER
Answered 2017-Mar-28 at 17:21You seem to be running Gitlab Runner v9.x. This error occurs when you match a V9 runner with a Gitlab below V9. They are incompatible.
Gitlab Runner v9 started using the V4 API, but that is only available with Gitlab V9. Downgrade to 1.11.1, should work again.
In particular, if you are starting your Runner using the official docker image, don't use :latest tag, switch to
QUESTION
I am trying to setup a docker runner and successfully registered the runner with gitlab-ce. However, when the job runs it always fails with the follow:
...ANSWER
Answered 2017-Sep-12 at 15:28Note that there might be two issue.
Regarding the token itself (and fatal: Authentication failed
), see this thread
The CI token is now securely generated for each build. It's available in
$CI_BUILD_TOKEN
.
If you're cloning a different repository from.gitlab-ci.yml
(like we were) your best bet is to use SSH.Another solution is to use your personal private token:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gitlab-ci-multi-runner
Install on OSX (preferred)
Install on Windows (preferred)
Install as Docker Service
Install in Auto-scaling mode
Use on FreeBSD
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