mirror of https://github.com/buildpacks/ci.git
|
…
|
||
|---|---|---|
| .. | ||
| provision-scripts | ||
| .terraform.lock.hcl | ||
| README.md | ||
| main.tf | ||
| terraform.tf | ||
| variables.tf | ||
README.md
Windows Runners
Usage
Configuration
All secrets are managed via Terraform Cloud.
The following script configures terraform CLI authentication against Terraform Cloud.
- auth-terraform.sh
- depends on:
op
- depends on:
Create
./../scripts/auth-terraform.sh
terraform init
terraform apply
- Expected execution time: ~35 minutes
Manual steps
On LCOW
- Enable
C:\drive sharing for volume mounting:Docker Desktop->Settings->Resources->File Sharing- Enter
C:\-> KeypressEnter - Press
Apply & Restart
On WCOW
- Change to Windows containers:
- In the system tray, Right-Click the Docker icon
- Click
Switch to Windows containers
- Add internal IP address to
hostsfiles: In an Administrative Powershell,$IPAddress=(Get-NetIPAddress -InterfaceAlias bond0 -AddressFamily IPv4).IPAddress | grep 10 "# Modified by CNB: https://github.com/buildpacks/ci/tree/main/gh-runners/windows ${IPAddress} host.docker.internal ${IPAddress} gateway.docker.internal " | Out-File -Filepath C:\Windows\System32\drivers\etc\hosts -Encoding utf8 - Set internal registries as insecure:
- In Docker settings, Click
Docker Engine - Add
10.0.0.0/8to theinsecure-registrieslist:{ "registry-mirrors": [], "insecure-registries": ["10.0.0.0/8"], "debug": false, "experimental": false } - Click
Apply & Restart
- In Docker settings, Click
Info
./../scripts/auth-terraform.sh
terraform init
terraform output
Destroy
./../scripts/auth-terraform.sh
terraform init
terraform destroy