This article is dedicated to configure proxy setting for docker installation of the Terraform Enterprise FDO
In some environments terraform enterprise host doesn't have access to the internet and proxy has to be used for terraform init stage of the runs.
Example of error message:
Operation failed: failed fetching Terraform: failed downloading terraform:
failed downloading "https://releases.hashicorp.com/terraform/1.5.3/terraform_1.5.3_linux_amd64.zip": GET https://releases.hashicorp.com/terraform/1.5.3/terraform_1.5.3_linux_amd64.zip giving up after 5 attempt(s): failed making temp file: open /tmp/terraform/71bf0bd0bd10f6eeac2261e23543df18.download-504ba21b-3a45-c1d4-ff08-7cd03823c4d8: read-only file system
Add proxy environment variables to the docker_compose environment section:
and restart terraform enterprise to apply proxy settings:
sudo docker compose -f docker_compose_file.yml restart