1- # This was largely based on; https://github.com/djboris9/vector-windows/blob/main/Dockerfile
2-
3- ARG WINDOWS_VERSION
4-
5- FROM mcr.microsoft.com/windows/servercore:$WINDOWS_VERSION
6-
7- ARG VECTOR_VERSION
8-
9- WORKDIR C:/Program Files/Vector
10-
11- SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
12-
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"
19-
20- ENV PATH="C:\\ Program Files\\ Vector\\ bin;C:\\ Windows\\ System32;C:\\ Windows;C:\\ Windows\\ System32\\ WindowsPowerShell\\ v1.0"
21-
1+ # This was largely based on; https://github.com/djboris9/vector-windows/blob/main/Dockerfile
2+
3+ ARG WINDOWS_VERSION
4+
5+ FROM mcr.microsoft.com/windows/servercore:$WINDOWS_VERSION
6+
7+ ARG VECTOR_VERSION
8+
9+ WORKDIR " C:/Program Files/Vector"
10+
11+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
12+
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
19+
20+ ENV PATH="C:\\ Program Files\\ Vector\\ bin;C:\\ Windows\\ System32;C:\\ Windows;C:\\ Windows\\ System32\\ WindowsPowerShell\\ v1.0"
21+
2222ENTRYPOINT ["vector.exe" ]
0 commit comments