Last active
February 13, 2022 23:04
-
-
Save fqborges/21a01784b36b0c1e172537ad81133989 to your computer and use it in GitHub Desktop.
boxstarter
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
| # start | |
| Disable-UAC | |
| # windows configs | |
| Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions | |
| Enable-RemoteDesktop | |
| # dev tools | |
| choco install -y git | |
| choco install -y nodejs | |
| choco install -y yarn | |
| choco install -y vscode --params "/NoDesktopIcon" | |
| choco install -y 7zip.install | |
| choco install -y notepadplusplus.install | |
| choco install -y dotnetcore-sdk | |
| choco install -y javaruntime | |
| # other tools | |
| choco install -y rapidee | |
| choco install -y imagemagick | |
| choco install -y slack | |
| choco install -y firefox | |
| choco install -y googlechrome | |
| # ecs-cli | |
| $ecs_cli_path="C:\Program Files\Amazon\ECSCLI" | |
| if(!(Test-Path $ecs_cli_path)) { | |
| New-Item $ecs_cli_path -type directory | |
| Invoke-WebRequest -OutFile "$ecs_cli_path\ecs-cli.exe" https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe | |
| if(!(${env:path} -match [regex]::Escape($ecs_cli_path))){ | |
| setx /m PATH "${env:Path};${ecs_cli_path}" | |
| } | |
| } | |
| # visual studio | |
| choco install -y visualstudio2019community --package-parameters "--locale en-US" | |
| choco install -y visualstudio2019-workload-netweb | |
| choco install -y visualstudio2019-workload-manageddesktop | |
| # iis | |
| choco install -y IIS-WebServerRole -source WindowsFeatures | |
| choco install -y IIS-ASPNET45 -source WindowsFeatures | |
| choco install -y urlrewrite | |
| %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers | |
| %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules | |
| choco install -y sql-server-management-studio | |
| # wsl2 | |
| dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
| dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all | |
| # please do restart before running the msi bellow | |
| Invoke-WebRequest -OutFile "$env:TEMP\wsl_update_x64.msi" https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi | |
| start-process $env:TEMP\wsl_update_x64.msi /quiet | |
| # docker | |
| choco install -y docker-for-windows | |
| choco install -y vscode-docker | |
| # dockers for local dev | |
| # sqlserver | |
| docker run -d --name=sqlserver -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=sa@adm123" -e "MSSQL_PID=Express" --restart=always -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest | |
| docker exec -it sqlserver /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "sa@adm123" -Q "ALTER LOGIN SA WITH PASSWORD='123456', CHECK_POLICY = OFF" | |
| # mysql | |
| docker run -d --name=mysql -e="MYSQL_ALLOW_EMPTY_PASSWORD=true" -p 3306:3306 --restart=always mysql:5.7 --lower_case_table_names=1 | |
| # redis | |
| docker run -d --name=redis -p 6379:6379 --restart=always redis:5.0.5 | |
| # end | |
| Enable-UAC | |
| Enable-MicrosoftUpdate | |
| Install-WindowsUpdate -acceptEula |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/host-and-deploy/iis/hosting-bundle.md