Hi there,
I’m using self-hosted Gitlab CE 9.0.0 on a Ubuntu 16.04 LTS VM on a MacOS Sierra host.
I’ve declared a ‘gitstudio’ host. When the runner tries to clone the repo I’ve the following error:
Cloning repository…
Cloning into ‘/builds/webapps/myapp’…
fatal: unable to access ‘http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitstudio/webapps/myapp.git/’: Couldn’t resolve host ‘gitstudio’
My configuration:
/etc/gitlab/gitlab.rb
external-url = ‘http://gitstudio’
/etc/hostname
gitstudio
/etc/resolv.conf
nameserver 192.168.64.2
search localdomain
/etc/hosts
127.0.0.1 localhost
127.0.1.1 gitstudio
/etc/gitlab-runner/config.toml
[[runners]]
name = “gitstudio-runner”
url = “http://gitstudio/ci”
token = “xxxxxxxxxxxxx”
executor = “docker”
[runners.docker]
tls_verify = false
image = “maven:3.3.9-jdk8”
privileged = false
disable_cache = false
volumes = [“/cache”]
[runners.cache]
/etc/docker/daemon.json
{
“dns”: [“192.168.64.2”, “8.8.8.8”]
}
What am I missing here ? Any idea ?
Thanks for your help.