mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Cleanup old markdown documenation approach (#979)
This commit is contained in:
committed by
GitHub
parent
8c8f384a61
commit
43e26fa96b
@@ -125,48 +125,14 @@ Choco-Install -PackageName webpicmd
|
||||
# Install vcredist140
|
||||
Choco-Install -PackageName vcredist140
|
||||
|
||||
|
||||
# Expand disk size of OS drive
|
||||
|
||||
New-Item -Path d:\ -Name cmds.txt -ItemType File -Force
|
||||
|
||||
Add-Content -Path d:\cmds.txt "SELECT VOLUME=C`r`nEXTEND"
|
||||
|
||||
$expandResult = (diskpart /s 'd:\cmds.txt')
|
||||
|
||||
Write-Host $expandResult
|
||||
|
||||
Write-Host "Disk sizes after expansion"
|
||||
|
||||
wmic logicaldisk get size,freespace,caption
|
||||
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
|
||||
$Content = @"
|
||||
<!--- DO NOT EDIT - This markdown file is autogenerated. -->
|
||||
# Windows Server 2016
|
||||
|
||||
The following software is installed on machines with the $env:ImageVersion update.
|
||||
|
||||
Components marked with **\*** have been upgraded since the previous version of the image.
|
||||
|
||||
"@
|
||||
|
||||
Add-ContentToMarkdown -Content $Content
|
||||
|
||||
|
||||
$SoftwareName = "Chocolatey"
|
||||
|
||||
if( $( $(choco version) | Out-String) -match 'Chocolatey v(?<version>.*).*' )
|
||||
{
|
||||
$chocoVersion = $Matches.version.Trim()
|
||||
}
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $chocoVersion<br/>
|
||||
_Environment:_
|
||||
* PATH: contains location for choco.exe
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
@@ -106,41 +106,3 @@ Write-Host "Visual Studio version ${version} installed"
|
||||
# Updating content of MachineState.json file to disable autoupdate of VSIX extensions
|
||||
$newContent = '{"Extensions":[{"Key":"1e906ff5-9da8-4091-a299-5c253c55fdc9","Value":{"ShouldAutoUpdate":false}},{"Key":"Microsoft.VisualStudio.Web.AzureFunctions","Value":{"ShouldAutoUpdate":false}}],"ShouldAutoUpdate":false,"ShouldCheckForUpdates":false}'
|
||||
Set-Content -Path "$VSInstallRoot\Common7\IDE\Extensions\MachineState.json" -Value $newContent
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
|
||||
$SoftwareName = "Visual Studio 2017 $ReleaseInPath"
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $version<br/>
|
||||
_Location:_ $VSInstallRoot
|
||||
|
||||
The following workloads including required and recommended components are installed with Visual Studio 2017:
|
||||
|
||||
* Universal Windows Platform development
|
||||
* .NET desktop development
|
||||
* Desktop development with C++
|
||||
* ASP.NET and web development
|
||||
* Azure development
|
||||
* Node.js development
|
||||
* Data storage and processing
|
||||
* Data science and analytical applications *
|
||||
* Game development with Unity *
|
||||
* Linux development with C++ *
|
||||
* Game development with C++ *
|
||||
* Mobile development with C++ *
|
||||
* Office/SharePoint development
|
||||
* Mobile development with .NET
|
||||
* .NET Core cross-platform development
|
||||
* Visual Studio extension development *
|
||||
* Python development *
|
||||
* Mobile development with JavaScript *
|
||||
|
||||
In addition the following optional components are installed:
|
||||
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
# Adding explicitly added Workloads details to markdown by parsing $Workloads
|
||||
Add-ContentToMarkdown -Content $($WorkLoads.Split('--') | % { if( ($_.Split(" "))[0] -like "add") { "* " +($_.Split(" "))[1] } } )
|
||||
@@ -11,7 +11,7 @@ function DockerPull {
|
||||
docker pull $image
|
||||
|
||||
if (!$?) {
|
||||
echo "Docker pull failed with a non-zero exit code"
|
||||
Write-Host "Docker pull failed with a non-zero exit code"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
@@ -22,14 +22,3 @@ DockerPull microsoft/aspnetcore-build:1.0-2.0
|
||||
DockerPull mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2016
|
||||
DockerPull mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2016
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
|
||||
$SoftwareName = "Docker images"
|
||||
|
||||
$Description = @"
|
||||
The following container images have been cached:
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Add-ContentToMarkdown -Content $(docker images --digests --format "* {{.Repository}}:{{.Tag}} (Digest: {{.Digest}})")
|
||||
|
||||
@@ -3,22 +3,5 @@
|
||||
## Desc: Validate SQL Server Data Tools for Windows
|
||||
################################################################################
|
||||
|
||||
Import-Module -Name ImageHelpers -Force
|
||||
$null = Get-VSExtensionVersion -packageName "SSDT"
|
||||
|
||||
$SSDTPackageVersion = Get-VSExtensionVersion -packageName "SSDT"
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "SQL Server Data Tools for VS 2017"
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $SSDTPackageVersion<br/>
|
||||
|
||||
The following components are installed:
|
||||
|
||||
* SQL Server Data Tools
|
||||
* SQL Server Analysis Services Designer
|
||||
* SQL Server Integration Services Designer
|
||||
* SQL Server Reporting Services Designers
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user