File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,14 +8,11 @@ ARG VECTOR_VERSION
88
99WORKDIR "C:/Program Files/Vector"
1010
11+ ADD install-vector.ps1 /windows/temp/install-vector.ps1
12+
1113SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
1214
13- RUN Write-Host "VECTOR_VERSION: $env:VECTOR_VERSION" ; `
14- $url = "https://github.com/vectordotdev/vector/releases/download/v${env:VECTOR_VERSION}/vector-${env:VECTOR_VERSION}-x86_64-pc-windows-msvc.zip" ; `
15- Write-Host "Download URL: $url" ; `
16- Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile "vector.zip" ; `
17- Expand-Archive -Path "vector.zip" -DestinationPath "." ; `
18- Remove-Item "vector.zip" -Force
15+ RUN /windows/temp/install-vector.ps1 -VectorVersion $VECTOR_VERSION
1916
2017RUN setx /M PATH "%PATH%;C:\P rogram Files\V ector\b in"
2118
Original file line number Diff line number Diff line change 1+ param (
2+ [Parameter (Mandatory = $true )]
3+ [string ]$VectorVersion
4+ )
5+
6+ Write-Host " VECTOR_VERSION: $VectorVersion "
7+ $url = " https://github.com/vectordotdev/vector/releases/download/v${VectorVersion} /vector-${VectorVersion} -x86_64-pc-windows-msvc.zip"
8+ Write-Host " Download URL: $url "
9+ Invoke-WebRequest - UseBasicParsing - Uri $url - OutFile " vector.zip"
10+ Expand-Archive - Path " vector.zip" - DestinationPath " ."
11+ Remove-Item " vector.zip" - Force
You can’t perform that action at this time.
0 commit comments