installed gitlab runner version=11.3.1. registered the runner like
gitlab-runner register --tls-ca-file /etc/gitlab-runner/certs/ca-bundle.cr
then got the error below
2018-12-14T18:45:42.817790090Z standard_init_linux.go:190: exec user process caused "argument list too long
from my reading, this is because ca-bundle.cr has more entries than runner/docker can handle.
If I register runner without specifying
gitlab-runner register, got another error as
SSL certificate problem: unable to get issuer certificate, so runner was looking for CA.
Tried the option to bypass ssl verification by adding the following in
environment = ["GIT_SSL_NO_VERIFY=true"]
This option works. However, this poses a security risk that we dont want.
Any advice on how to let runner work with CA?
config.toml below as a reference
name = "maven package docker build" url = "https://gitlab.abc.com/" token = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa" tls-ca-file = "/etc/gitlab-runner/certs/ca-bundle.crt" executor = "docker" [runners.docker] tls_verify = false image = "docker:latest" privileged = true disable_cache = false volumes = ["/cache"] shm_size = 0 [runners.cache] [runners.cache.s3] [runners.cache.gcs]