YunoHost-Apps / gitlab-runner_ynh

GitLab runner package for YunoHost
https://gitlab.com/gitlab-org/gitlab-runner
GNU Affero General Public License v3.0
5 stars 6 forks source link

Network issues #35

Open markfoodyburton opened 3 years ago

markfoodyburton commented 3 years ago

I have had to add network_mode = "host" to /etc/gitlab-runner/config.toml to get networking to work within the docker used as the runner.

I think this can be enabled in the configuration step with a --docker-network-mode switch, but I am unclear yet why this is necessary (and if it's only my case, or in all cases?)

cbldev commented 3 years ago

Last week, I had an issue with a Could not resolve host message in a Gitlab runner job. Solved using https://forum.yunohost.org/t/solved-gitlab-runner-could-not-resolve-host-my-domain-ltd/12619

The issue appeared this week again. Solved using the addition of network_mode = "host" in the [runners.docker] section of /etc/gitlab-runner/config.toml