Skip to content

Instantly share code, notes, and snippets.

@WillSams
Last active March 8, 2023 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WillSams/aecece4d52df77c73fd0af1f054c6ff8 to your computer and use it in GitHub Desktop.
Save WillSams/aecece4d52df77c73fd0af1f054c6ff8 to your computer and use it in GitHub Desktop.
Windows Dev Install
echo "************************************************************"
echo "* WINDOWS-DEV-INSTALLER SRCIPT *"
echo "* this script should be executed with admin privileges *"
echo "************************************************************"
echo "* STEP 1 - Install Chocolatey ******************************"
mkdir C:\ProgramData\chocoportable
"# Set directory for installation - Chocolatey does not lock
# down the directory if not the default
$InstallDir='C:\ProgramData\chocoportable'
$env:ChocolateyInstall="$InstallDir"
# If your PowerShell Execution policy is restrictive, you may
# not be able to get around that. Try setting your session to
# Bypass.
Set-ExecutionPolicy Bypass -Scope Process -Force;
# All install options - offline, proxy, etc at
# https://chocolatey.org/install
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" | Out-File -FilePath "choco-install.ps1" -Force
.\choco-install.ps1
choco feature enable -n useFipsCompliantChecksums
choco install -y git.commandline --force
choco install -y vim-tux.portable --force
choco install -y docker-for-windows --force
choco install -y eksctl --force
choco install -y curl --force
choco install -y wget --force
echo "* STEP 2 - Install kubectl ******************************"
mkdir C:\ProgramData\kubectl
Invoke-WebRequest -Uri https://dl.k8s.io/release/v1.26.0/bin/windows/amd64/kubectl.exe" -OutFile "C:\ProgramData\kubectl\kubectl.exe"
Add-Content -Path $PROFILE.AllUsersAllHosts -Value '$env:Path += ";C:\ProgramData\kubectl"'
echo "* STEP 3 - Install AWS-CLI ******************************"
Invoke-WebRequest -Uri "https://awscli.amazonaws.com/AWSCLIV2.msi" -OutFile "awscli.msi"
.\awscli.msi
echo "* STEP 4 - Install NVM for Windows **********************"
Invoke-WebRequest -Uri "https://github.com/coreybutler/nvm-windows/releases/download/1.1.10/nvm-setup.exe" -OutFile "nvm-setup.exe"
.\nvm-setup.exe
nvm install lts/hydrogen
nvm install lts/gallium
nvm install lts/fermium
echo "* STEP 5 - Open VSCode and allow it to finish plugins install *******"
code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment