Skip to content

Status Updates: Pratim Sil

PratimSil edited this page May 18, 2022 · 35 revisions

Environment: Windows

Reference: README

1. Prerequisites Checks

Step: [1.1] Windows Version

Command:

Get-ComputerInfo | select WindowsProductName, WindowsVersion

Output:

image

Step: [1.2] HyperV is Enabled

Command:

systeminfo /fo csv | ConvertFrom-Csv | select OS*, System*, Hotfix*,Hyper-V* | Format-List

Output:

image

2. Setup

2.1 Workspace & Applications

Step: [2.1.1] Workspace

Command:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope currentuser

Output:

image

Command:

iwr -useb https://raw.githubusercontent.com/rajasoun/win10x-onboard/main/e2e.ps1 | iex

Output:

image

image

Command:

cd ~\workspace

Output:

image

Command:

git clone https://github.com/rajasoun/win10x-onboard

Output:

image

Command:

cd win10x-onboard

Output:

image

Command:

Invoke-Pester src\lib\Workspace.Tests.ps1 -Output Detailed

Output:

image

Step: [2.1.2] Applications Setup

Command:

.\e2e.ps1 apps

Output:

image

image

Step: [2.1.3] Check Applications Setup

Command:

.\e2e.ps1 apps-setup-test

Output:

image

2.2 HyperV

Step: [2.2.1] Enable HyperV

1. In PowerShell window Run following commands following commands to setup HyperV.

First, Switch to Elevated Privilege,

command:

.\e2e.ps1 elevate

Output:

image

Now, In the New Elevated PowerShell as Administrator Execute the command below

command:

.\e2e.ps1 hyperv

Output:

image

Restart Your computer


2. After Restarting Windows, search for Turn Windows features on or off in the Start Menu search bar and open it.

image

3. In the Windows Features , Please check the check boxes before Hyper-V, Virtual Machine Platform and Windows Hypervisor Platform . Then click OK. This will also take some time and then a Restart is necessary

image

2.3 WSL2 & Kernel Update

Step: [2.3] WSL2 & Kernel Update

In PowerShell window Run following commands following commands to setup WSL, WSL2 Kernel Update

Switch to Elevated Previlage

command:

.\e2e.ps1 elevate

Output:

image

Now, In the New Elevated Powershell as Administrator Run the below command to setup WSL, WSL2 Kernel Update

.\e2e.ps1 wsl

Output:

image

2.4 Install Docker Desktop

Install Docker Desktop & Launch It

Installed Docker

Output:

image

2.5 Test Docker Setup

Step: [2.5.1] Bash Setup

Command:

.\e2e.ps1 bash-it
nix/assist.sh bash-setup

Output:

image

Step: [2.5.2] Docker hello-world

Now , Open Git Bash command prompt and Run the below command

Command:

docker run --rm hello-world

Output:

image

Step: [2.5.3] Docker speed-test

Check the Speed of the Internet using docker

Command:

MSYS_NO_PATHCONV=1  docker run --rm rajasoun/speedtest:0.1.0 "/go/bin/speedtest-go"

Output:

image

Step: [2.5.4] Switch to Powershell

Command:

exit

Output:

image

3. Test

3.1 TDD Scripts

Step: [3.1.1] Workspace Tests

Command:

.\e2e.ps1 apps-setup-test

Output:

image

image

Switch to Elevated Previlage

Command:

.\e2e.ps1 elevate

Output:

image

In the New Elevated PowerShell run the below command as Administrator,

Command:

.\e2e.ps1 system-setup-test

Output:

image

3.2 ATDD Scripts

Step: [3.2.1] Prerequisite Tests

Command:

Invoke-Pester e2e.Tests.ps1 -Tag "prerequisite"  -Output Detailed

Output:

image

Command:

Invoke-Pester e2e.Tests.ps1 -Tag "apps"   -Output Detailed

Output:

image