Docker/DockerSetup.ps1

# Set TLS1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Write-Host "Setting local execution policy"
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine  -ErrorAction Continue | Out-Null

Write-Host "Enable long path behavior"
# See https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file#maximum-path-length-limitation
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1

$toolPath = (Get-Module -Name Capgemini.PowerPlatform.DevOps -ListAvailable).Path -Replace 'Capgemini.PowerPlatform.DevOps.psd1',''
. $toolPath\Private\_SetupTools.ps1
. $toolPath\Private\Install-PreRequisites.ps1

Install-ConfigMigrationModule($true)
Install-XrmModule($true)
Install-PowerAppsAdmin($true)
Install-PowerAppsCheckerModule($true)


Invoke-InstallPreRequisites