mirror of
https://github.com/traefik/traefik-library-image.git
synced 2026-05-02 18:32:33 +00:00
Add images for Windows Server 2025
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@ param(
|
||||
Write-Output 'Test for ' + $target
|
||||
|
||||
$ErrorActionPreference = 'Stop' # Fail if any instruction fails
|
||||
$version = Get-Content .\version -Raw
|
||||
$version = (Get-Content .\version -Raw).Trim()
|
||||
$api_opts = ''
|
||||
if($version.StartsWith('v2')) {
|
||||
$api_opts='--api.insecure'
|
||||
@@ -15,7 +15,7 @@ if($version.StartsWith('v3')) {
|
||||
$api_opts='--api.insecure'
|
||||
}
|
||||
|
||||
$path = $version-replace "\.[0-9a-z\-]+\s*$"
|
||||
$path = $version -replace "(\.\d+)\..+$", '$1'
|
||||
|
||||
docker build -t traefik:$target $path/windows/$target
|
||||
docker run --name lb -d -p 8080:8080 traefik:$target --api $api_opts
|
||||
|
||||
@@ -39,3 +39,18 @@ jobs:
|
||||
- name: Test
|
||||
run: .\.ci\test.ps1 -target 'servercore-ltsc2022'
|
||||
shell: powershell
|
||||
|
||||
docker-library-wincore2025:
|
||||
name: Test on windows server core 2025
|
||||
runs-on: windows-2025
|
||||
|
||||
steps:
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Test
|
||||
run: .\.ci\test.ps1 -target 'servercore-ltsc2025'
|
||||
shell: powershell
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
FROM mcr.microsoft.com/windows/nanoserver:ltsc2025
|
||||
|
||||
COPY --from=traefik:${VERSION}-windowsservercore-ltsc2025 /traefik.exe /
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT [ "/traefik" ]
|
||||
|
||||
# Metadata
|
||||
LABEL org.opencontainers.image.vendor="Traefik Labs" \
|
||||
org.opencontainers.image.url="https://traefik.io" \
|
||||
org.opencontainers.image.source="https://github.com/traefik/traefik" \
|
||||
org.opencontainers.image.title="Traefik" \
|
||||
org.opencontainers.image.description="A modern reverse-proxy" \
|
||||
org.opencontainers.image.version="$VERSION" \
|
||||
org.opencontainers.image.documentation="https://docs.traefik.io"
|
||||
@@ -0,0 +1,20 @@
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2025
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
RUN Invoke-WebRequest \
|
||||
-Uri "https://github.com/traefik/traefik/releases/download/${VERSION}/traefik_${VERSION}_windows_amd64.zip" \
|
||||
-OutFile "/traefik.zip"; \
|
||||
Expand-Archive -Path "/traefik.zip" -DestinationPath "/" -Force; \
|
||||
Remove-Item "/traefik.zip" -Force
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT [ "/traefik" ]
|
||||
|
||||
# Metadata
|
||||
LABEL org.opencontainers.image.vendor="Traefik Labs" \
|
||||
org.opencontainers.image.url="https://traefik.io" \
|
||||
org.opencontainers.image.source="https://github.com/traefik/traefik" \
|
||||
org.opencontainers.image.title="Traefik" \
|
||||
org.opencontainers.image.description="A modern reverse-proxy" \
|
||||
org.opencontainers.image.version="$VERSION" \
|
||||
org.opencontainers.image.documentation="https://docs.traefik.io"
|
||||
@@ -16,6 +16,8 @@ PLATFORMS=(
|
||||
"scratch"
|
||||
"windows/nanoserver-ltsc2022"
|
||||
"windows/servercore-ltsc2022"
|
||||
"windows/nanoserver-ltsc2025"
|
||||
"windows/servercore-ltsc2025"
|
||||
)
|
||||
|
||||
SCRIPT_DIRNAME_ABSOLUTEPATH="$(cd "$(dirname "$0")" && pwd -P)"
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
FROM mcr.microsoft.com/windows/nanoserver:ltsc2025
|
||||
|
||||
COPY --from=traefik:v2.11.40-windowsservercore-ltsc2025 /traefik.exe /
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT [ "/traefik" ]
|
||||
|
||||
# Metadata
|
||||
LABEL org.opencontainers.image.vendor="Traefik Labs" \
|
||||
org.opencontainers.image.url="https://traefik.io" \
|
||||
org.opencontainers.image.source="https://github.com/traefik/traefik" \
|
||||
org.opencontainers.image.title="Traefik" \
|
||||
org.opencontainers.image.description="A modern reverse-proxy" \
|
||||
org.opencontainers.image.version="v2.11.40" \
|
||||
org.opencontainers.image.documentation="https://docs.traefik.io"
|
||||
@@ -0,0 +1,20 @@
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2025
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
RUN Invoke-WebRequest \
|
||||
-Uri "https://github.com/traefik/traefik/releases/download/v2.11.40/traefik_v2.11.40_windows_amd64.zip" \
|
||||
-OutFile "/traefik.zip"; \
|
||||
Expand-Archive -Path "/traefik.zip" -DestinationPath "/" -Force; \
|
||||
Remove-Item "/traefik.zip" -Force
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT [ "/traefik" ]
|
||||
|
||||
# Metadata
|
||||
LABEL org.opencontainers.image.vendor="Traefik Labs" \
|
||||
org.opencontainers.image.url="https://traefik.io" \
|
||||
org.opencontainers.image.source="https://github.com/traefik/traefik" \
|
||||
org.opencontainers.image.title="Traefik" \
|
||||
org.opencontainers.image.description="A modern reverse-proxy" \
|
||||
org.opencontainers.image.version="v2.11.40" \
|
||||
org.opencontainers.image.documentation="https://docs.traefik.io"
|
||||
@@ -0,0 +1,15 @@
|
||||
FROM mcr.microsoft.com/windows/nanoserver:ltsc2025
|
||||
|
||||
COPY --from=traefik:v3.6.10-windowsservercore-ltsc2025 /traefik.exe /
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT [ "/traefik" ]
|
||||
|
||||
# Metadata
|
||||
LABEL org.opencontainers.image.vendor="Traefik Labs" \
|
||||
org.opencontainers.image.url="https://traefik.io" \
|
||||
org.opencontainers.image.source="https://github.com/traefik/traefik" \
|
||||
org.opencontainers.image.title="Traefik" \
|
||||
org.opencontainers.image.description="A modern reverse-proxy" \
|
||||
org.opencontainers.image.version="v3.6.10" \
|
||||
org.opencontainers.image.documentation="https://docs.traefik.io"
|
||||
@@ -0,0 +1,20 @@
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2025
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
RUN Invoke-WebRequest \
|
||||
-Uri "https://github.com/traefik/traefik/releases/download/v3.6.10/traefik_v3.6.10_windows_amd64.zip" \
|
||||
-OutFile "/traefik.zip"; \
|
||||
Expand-Archive -Path "/traefik.zip" -DestinationPath "/" -Force; \
|
||||
Remove-Item "/traefik.zip" -Force
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT [ "/traefik" ]
|
||||
|
||||
# Metadata
|
||||
LABEL org.opencontainers.image.vendor="Traefik Labs" \
|
||||
org.opencontainers.image.url="https://traefik.io" \
|
||||
org.opencontainers.image.source="https://github.com/traefik/traefik" \
|
||||
org.opencontainers.image.title="Traefik" \
|
||||
org.opencontainers.image.description="A modern reverse-proxy" \
|
||||
org.opencontainers.image.version="v3.6.10" \
|
||||
org.opencontainers.image.documentation="https://docs.traefik.io"
|
||||
@@ -0,0 +1,15 @@
|
||||
FROM mcr.microsoft.com/windows/nanoserver:ltsc2025
|
||||
|
||||
COPY --from=traefik:v3.7.0-ea.1-windowsservercore-ltsc2025 /traefik.exe /
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT [ "/traefik" ]
|
||||
|
||||
# Metadata
|
||||
LABEL org.opencontainers.image.vendor="Traefik Labs" \
|
||||
org.opencontainers.image.url="https://traefik.io" \
|
||||
org.opencontainers.image.source="https://github.com/traefik/traefik" \
|
||||
org.opencontainers.image.title="Traefik" \
|
||||
org.opencontainers.image.description="A modern reverse-proxy" \
|
||||
org.opencontainers.image.version="v3.7.0-ea.1" \
|
||||
org.opencontainers.image.documentation="https://docs.traefik.io"
|
||||
@@ -0,0 +1,20 @@
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2025
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
RUN Invoke-WebRequest \
|
||||
-Uri "https://github.com/traefik/traefik/releases/download/v3.7.0-ea.1/traefik_v3.7.0-ea.1_windows_amd64.zip" \
|
||||
-OutFile "/traefik.zip"; \
|
||||
Expand-Archive -Path "/traefik.zip" -DestinationPath "/" -Force; \
|
||||
Remove-Item "/traefik.zip" -Force
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT [ "/traefik" ]
|
||||
|
||||
# Metadata
|
||||
LABEL org.opencontainers.image.vendor="Traefik Labs" \
|
||||
org.opencontainers.image.url="https://traefik.io" \
|
||||
org.opencontainers.image.source="https://github.com/traefik/traefik" \
|
||||
org.opencontainers.image.title="Traefik" \
|
||||
org.opencontainers.image.description="A modern reverse-proxy" \
|
||||
org.opencontainers.image.version="v3.7.0-ea.1" \
|
||||
org.opencontainers.image.documentation="https://docs.traefik.io"
|
||||
Reference in New Issue
Block a user