[SOLVED] Build failed: "Is this a git repository?"

Hello Forum! I’m totally new to GitLab and I need a little help. I’ve been attempting to test it out with a sort of hello-world application, but I’ve run into an issue with my builds failing before much even happens. For whatever it’s worth this is running on a local network and I’ve done the bare minimum to setup GitLab CI and the GitLab Runner.

Running with gitlab-runner 11.0.0 (5396d320)
on Generic Runner a564d78e
Using Docker executor with image ubuntu …
Pulling docker image ubuntu …
Using docker image sha256:113a43faa1382a7404681f1b9af2f0d70b182c569aab71db497e33fa59ed87e6 for ubuntu …
Running on runner-a564d78e-project-1-concurrent-0 via dumdum…
Cloning repository…
Cloning into ‘/builds/engineering/nanobox-hello-world’…
fatal: http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@lab.example.com/engineering/nanobox-hello-world.git/info/refs not valid: is this a git repository?
ERROR: Job failed: exit code 1

Have you ever seen anything like this?

I may have cracked it late last night. It looks like the issue is that the docker containers weren’t recognizing the domain lab.example.com because that only resolves in the runner’s /etc/hosts/ file. The containers were ignorant of this so it makes sense that they would fail while trying to clone off of that url.

The problem appears to be fully resolved by populating the extra_hosts parameter in the config.toml file.