2

I have a raspberry pi with gitlab-runner installed (linux version) and a git repository on gitlab.com (not self hosted).

At the beginning of pipeline, gitlab-runner on raspberry try to fetch the .git repo but I get :

Could not resolve host: gitlab.com

I tried :

  • ping gitlab.com is ok on the raspberry
  • Add extra_host = ['localhost:my.ip.ad.ress] --> No changes
  • Add netword_mode = "gitlab_default" like this, And get :

This error :

Error response from daemon: network gitlab_default not found (exec.go:57:1s)

I am in the simplest configuration with repo on gitlab.com and a gitlab-runner on raspberry. How can I deal with it ?

Here is the config.toml :

concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "gitlab runner on raspberryPi"
  url = "https://gitlab.com/"
  token = "XXXX"
  executor = "docker"
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
    [runners.cache.azure]
  [runners.docker]
    tls_verify = false
    image = "node:latest"
    privileged = false
    disable_entrypoint_overwrite = false
    oom_kill_disable = false
    disable_cache = false
    volumes = ["/cache"]
    shm_size = 0
Arty-chan
  • 1,590
  • 1
  • 15
  • 20
Alexy
  • 642
  • 3
  • 17
  • Try to add DNS=["8.8.8.8"] for runners.docker and also for the raspberry dns --> No changes – Alexy Oct 25 '21 at 13:09

0 Answers0