Skip to content

Commit

Permalink
feat: install requirements for (auto)mounting FSx volumes on Jenkins …
Browse files Browse the repository at this point in the history
…Windows build agents (#319)
  • Loading branch information
jorisdon authored Sep 30, 2024
1 parent 7a197eb commit db4f623
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/packer/build-agents/windows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ Currently this AMI is designed to work with our Jenkins module. This is why it c
- OpenJDK used by Jenkins agents
- Git
- OpenSSH
- Python3
- Botocore
- Boto3
- Client for Network File System (NFS)
- Windows Development Kit and Debugging Tools
- Visual Studio 2022 Build Tools
- VCTools Workload; Include Recommended
Expand Down
20 changes: 20 additions & 0 deletions assets/packer/build-agents/windows/base_setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,26 @@ catch {
Write "Failed to install OpenSSH"
}

try {
# Installing Client for NFS
Write "Installing Client for NFS"
Install-WindowsFeature NFS-Client
}
catch {
Write "Failed to install Client for NFS"
}

try {
# Python
Write "Installing Python, botocore, boto3"
choco install -y --no-progress python
refreshenv
pip install botocore boto3
}
catch {
Write "Failed to install Python, botocore, boto3"
}

try {
Write Get-Disk | Where-Object partitionstyle -EQ 'raw'
Get-Disk | Where-Object partitionstyle -EQ \"raw\" | Initialize-Disk -PartitionStyle GPT -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel \"Data Drive\" -Confirm:$false
Expand Down

0 comments on commit db4f623

Please sign in to comment.