terraform-aws-gitlab-runner icon indicating copy to clipboard operation
terraform-aws-gitlab-runner copied to clipboard

http_proxy support missing

Open robpearce-flux opened this issue 3 years ago • 2 comments
trafficstars

it'd be good to get support for http_proxy on outbound connections, for pulling the packages, and for the runners connecting back to the git instance.

robpearce-flux avatar Nov 25 '21 03:11 robpearce-flux

You can inject a custom script in to both agent and docker-machines to set a proy.

npalm avatar Dec 01 '21 23:12 npalm

@robpearce-flux npalm refers to

  docker_machine_options           = ["engine-registry-mirror=https://my.docker.proxy"]

which is a parameter of the module and sets the docker proxy.

The variables runners_pre_build_script and userdata_pre_install could also be a good choice to set proxies of any type.

kayman-mk avatar Dec 28 '21 15:12 kayman-mk

@robpearce-flux Can this issue be closed?

kayman-mk avatar Dec 30 '22 13:12 kayman-mk

yes, thanks.

it turned out to be quite the hoop jumping as by using docker+machine we needed the machines to also support the proxy so had to pass the proxy details in via the userdata of the machine set from the runner set from the module, but we got it done after a lot of trial and error.

robpearce-flux avatar Jan 08 '23 19:01 robpearce-flux