Http proxy for runners #3738
-
Hello there, does someone know a way how to configure a http proxy for the runners? I deploy the runners and the lambda function in a private network and i also host a private github, so the connection with the actions works fine but when the runners tries to download sources like grafana k6 it could not connect to the repository. That is because it routes to my private network. I want now configure http_proxy and https_proxy for the runners but i did not get it running. I have already tried to adjust the install-runner.sh to export the env variables but this did not work. Action output: Thanks for every help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found it out how to get it running: First set the module variables "lambda_subnet_ids" and "lambda_security_group_ids" then edit the ec2 launch template as following: Add to the ./modules/runners/templates/user-data.sh sudo mkdir -p /etc/systemd/system/docker.service.d before docker got installed: dnf upgrade-minimal -y # Install docker |
Beta Was this translation helpful? Give feedback.
I found it out how to get it running:
First set the module variables "lambda_subnet_ids" and "lambda_security_group_ids" then edit the ec2 launch template as following:
Add to the ./modules/runners/templates/user-data.sh
"""
mkdir -p /opt/actions-runner
tee /opt/actions-runner/.env <<EOL
http_proxy=<your-proxy>
https_proxy=<your-proxy>
HTTP_PROXY=<your-proxy>
HTTPS_PROXY=<your-proxy>
no_proxy=<your-no-proxy>
NO_PROXY=<your-no-proxy>
EOL
sudo mkdir -p /etc/systemd/system/docker.service.d
tee /etc/systemd/system/docker.service.d/http-proxy.conf <<EOL
[Service]
Environment="http_proxy=<your-proxy>"
Environment="https_proxy=<your-proxy>"
Environment="HTTP_PROXY=<your-proxy>"
Environment="HTTP…