Skip to content

Http proxy for runners #3738

Discussion options

You must be logged in to vote

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by InvokedLambda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant