File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 context : .
5050 push : true
5151 platforms : windows/amd64
52- build-args : WINDOWS_VERSION=ltsc2025
52+ build-args : WINDOWS_VERSION=ltsc2025, VECTOR_VERSION=0.51.0
5353 tags : ${{ steps.meta.outputs.tags }}
5454 labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1+ # This was largely based on; https://github.com/djboris9/vector-windows/blob/main/Dockerfile
2+
13ARG WINDOWS_VERSION
4+ ARG VECTOR_VERSION
25
3- FROM mcr.microsoft.com/windows/servercore:$WINDOWS_VERSION
6+ from alpine:latest as downloader
47
5- WORKDIR /temp
8+ WORKDIR /vector
69
7- SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
10+ RUN apk add --no-cache curl unzip && \
11+ curl -L -o vector.zip https://github.com/vectordotdev/vector/releases/download/v$VECTOR_VERSION/vector-$VECTOR_VERSION-x86_64-pc-windows-msvc.zip && \
12+ unzip vector.zip && \
13+ rm vector.zip
814
9- RUN Invoke-WebRequest -OutFile vector.zip -Uri https://github.com/vectordotdev/vector/releases/download/v0.51.0/vector-0.51.0-x86_64-pc-windows-msvc.zip
10- RUN Expand-Archive -Path vector.zip -DestinationPath C:\P rogram Files\v ector
11- RUN Remove-Item -Path vector.zip
15+ FROM mcr.microsoft.com/windows/servercore:$WINDOWS_VERSION
1216
1317WORKDIR C:/Program Files/Vector
1418
1519ENV PATH="C:\\ Program Files\\ Vector\\ bin;C:\\ Windows\\ System32;C:\\ Windows;C:\\ Windows\\ System32\\ WindowsPowerShell\\ v1.0"
1620
21+ COPY --from=downloader ["/vector/" , "C:/Program Files/Vector" ]
22+
1723ENTRYPOINT ["vector.exe" ]
You can’t perform that action at this time.
0 commit comments