This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: all | |
| serial: 1 | |
| gather_facts: true | |
| vars: | |
| target_release: noble | |
| tasks: | |
| - name: Skip hosts that are not ARM64 workers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Docker Build Log Analyzer | |
| Analyzes Docker build logs to extract build times and create visualizations. | |
| """ | |
| import os | |
| import re | |
| import glob | |
| from datetime import datetime, timedelta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for a in /dev/sda /dev/sdb /dev/sdc /dev/sdd ; do | |
| wipefs -af $a | |
| sgdisk -n1:1M:+1M -t1:EF02 $a | |
| sgdisk -n2:0:+512M -t2:FD00 $a | |
| sgdisk -n3:0:0 -t3:FD00 $a | |
| done | |
| mdadm --create /dev/md0 --level=raid1 --metadata=1.2 --raid-devices=4 /dev/sd[a-d]2 | |
| mdadm --create /dev/md1 --level=raid5 --metadata=1.2 --raid-devices=4 /dev/sd[a-d]3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: all | |
| vars: | |
| boot_device: "/dev/sda2" | |
| root_device: "/dev/sda3" | |
| tasks: | |
| - name: Install apt packages | |
| apt: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: all | |
| vars: | |
| root_device: "/dev/sda2" | |
| tasks: | |
| - name: Install apt packages | |
| apt: | |
| name: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: all | |
| vars: | |
| password: "password" | |
| part1: [] | |
| part2: "" | |
| part3: "" | |
| part4: "" | |
| tasks: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: all | |
| vars: | |
| go_version: 1.24.1 | |
| tasks: | |
| - name: apt packages | |
| apt: | |
| name: | |
| - docker.io | |
| - golang |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $config = Invoke-RestMethod -uri https://raw.githubusercontent.com/Microsoft/hcsshim/d0b3bfc2ea9303a6a506da319f67fe827530b91e/test/functional/assets/defaultwindowsspec.json -Method Get | |
| $config.process.args = @("cmd", "/c", "echo hello") | |
| $config.windows.layerFolders = New-Object System.Collections.ArrayList | |
| $ver = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name LCUVer).LCUVer | |
| $image = "mcr.microsoft.com/windows/servercore:$ver" | |
| docker image pull $image | |
| $imageInspect = docker image inspect $image | ConvertFrom-JSON | |
| $layer = $imageInspect.GraphDriver.Data.dir | |
| while ($layer) { | |
| $config.windows.layerFolders.Add($layer) |