-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerDevEnvSetup.bat
More file actions
62 lines (48 loc) · 2.41 KB
/
DockerDevEnvSetup.bat
File metadata and controls
62 lines (48 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
cls
@echo off
title "Docker Desktop Dev Env Auto Downloader"
echo Running :
echo Docker Desktop Dev Env Auto Downloader
echo The following packages will be installed : Docker Desktop, WSL2,
if not exist "C:\DockerDevEnvDownload\" mkdir C:\DockerDevEnvDownload\
echo Created C:\DockerDevEnvDownload\
echo Step 1) Downloading Docker Desktop(485MB)
::Used tiny URL to overcome "%20" issue in download
::https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe
::https://tinyurl.com/55b2ss82
powershell -Command "Invoke-webRequest https://tinyurl.com/55b2ss82 -Outfile C:\DockerDevEnvDownload\DockerDesktopInstaller.exe"
echo Complete.
echo ...
echo Step 2) Downloading Optional Software :
echo ...
::echo Downloading Windows Subsystem "for" Linux(WSL2)
::powershell -Command "Invoke-webRequest https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi -Outfile C:\DockerDevEnvDownload\wsl_update_x64.msi"
::echo Complete.
::echo ...
::echo Downloading Distro - Kali Linux
::powershell -Command "Invoke-webRequest https://aka.ms/wsl-kali-linux-new -Outfile C:\DockerDevEnvDownload\kali-linux-08-06-2019.appx"
::echo Complete.
::echo ...
::echo Downloading Distro - Ubuntu Linux
::powershell -Command "Invoke-webRequest https://aka.ms/wslubuntu2004 -Outfile C:\DockerDevEnvDownload\Ubuntu_2004.2020.424.0_x64.appx"
::echo Complete.
::echo ..
echo Downloading Git Bash package
powershell -Command "Invoke-webRequest https://git-scm.com/download/win -Outfile C:\DockerDevEnvDownload\Git-2.34.1-64-bit.exe"
echo Complete.
echo ...
::https://code.visualstudio.com/sha/download?build=stable&os=win32-x64-user
::https://tinyurl.com/yc88fzrd
echo Downloading Visual Studio Code
powershell -Command "Invoke-webRequest https://tinyurl.com/yc88fzrd -Outfile C:\DockerDevEnvDownload\VSCodeUserSetup-x64-1.63.0.exe"
echo Downloading Docker Development Environment Dependencies: Complete
echo ...
::echo Updating necessary settings :
::echo - Enabling the Windows Subsystem for Linux
::powershell -Command "dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart"
::echo ...
::echo - Enabling Virtual Machine feature
::powershell -Command "dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart"
::echo ...
::echo restart and follow instructions at "https://docs.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package"
pause