Skip to content

Commit

Permalink
fix: win client setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsvetan Ivanov committed May 5, 2020
1 parent c1d9bab commit fb4deaf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions workshop-setup/client-setup/setup-docker-win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ param(
if ((Get-Command "docker.exe" -ErrorAction SilentlyContinue) -eq $null)
{
Write-Host "Downloading docker cli and docker-compose cli"
mkdir "$HOME\docker-client"
if (-not (Test-Path "$HOME\docker-client")) {
mkdir "$HOME\docker-client"
}
cd "$HOME\docker-client"
wget https://github.com/Jessie365/docker-workshop/raw/develop/bin/docker.exe -OutFile docker.exe
wget https://github.com/Jessie365/docker-workshop/raw/develop/bin/docker-compose.exe -OutFile docker-compose.exe
$envPath = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::User)
$envPath += "$HOME\docker-client"
$envPath += ";$HOME\docker-client"
[System.Environment]::SetEnvironmentVariable('PATH', $envPath, [System.EnvironmentVariableTarget]::User)
}

Expand Down

0 comments on commit fb4deaf

Please sign in to comment.