diff --git a/docs/playbooks.md b/docs/playbooks.md index 65c7f2f..769da44 100644 --- a/docs/playbooks.md +++ b/docs/playbooks.md @@ -160,21 +160,21 @@ To setup new machine in GCP: To spawn a new Windows agent: 1. Go to the [GCP page](https://pantheon.corp.google.com/compute/instances?project=llvm-premerge-checks&instancessize=50). -1. Add new windows machine wih OS "Windows Server" and version with "desktop experience" (so you can RDP) and boot disk size ~200 Gb. There is a "windows-agent-template" that might not be up to date. +1. Add new windows machine wih OS "Windows Server" and version with "desktop experience" (so you can RDP) and boot disk size ~500 Gb. There is a "windows-agent-template" that might not be up to date. 1. Go to the [GCP page](https://pantheon.corp.google.com/compute/instances?project=llvm-premerge-checks&instancessize=50) again 1. Login to the new machine via RDP (you will need a RDP client, e.g. Chrome app). 1. (optional, quality of life) Add a powershell shortcut at desktop with "run as admin" flag. Create a folder with machine name (e.g "w16c2-2") somewhere and click "add new toolbar" on windows toolbar: this way it will be easier to identify which machine you are working with later. 1. Run these commands in the power shell under admin to bootstrap the Windows machine: - ```powershell +```powershell Invoke-WebRequest -uri 'https://raw.githubusercontent.com/google/llvm-premerge-checks/main/scripts/windows_agent_bootstrap.ps1' -OutFile c:\windows_agent_bootstrap.ps1 c:/windows_agent_bootstrap.ps1 - ``` +``` VM will be restarted after a prompt. To start agent manually: - ```powershell - C:\llvm-premerge-checks\scripts\windows_agent_start_buildkite.ps1 [-workdir D:\] [-testing] [-version latest] - ``` +```powershell +C:\llvm-premerge-checks\scripts\windows_agent_start_buildkite.ps1 [-workdir D:\] [-testing] [-version latest] +``` ## Custom environment variables @@ -206,4 +206,4 @@ htpasswd -b auth # update secret kubectl delete secret http-auth -n buildkite kubectl create secret generic http-auth -n buildkite --from-file=./auth -``` \ No newline at end of file +```