diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41e1519..4c04691 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,3 +55,18 @@ jobs: - name: Test run: .\.ci\test.ps1 -target 'servercore-ltsc2022' shell: powershell + + docker-library-winnano2022: + name: Test on windows nano server 2022 + runs-on: windows-2022 + + steps: + + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Test + run: .\.ci\test.ps1 -target 'nanoserver-ltsc2022' + shell: powershell diff --git a/update.sh b/update.sh index cc71dbd..24f49c2 100755 --- a/update.sh +++ b/update.sh @@ -14,6 +14,7 @@ PLATFORMS=( "alpine" "scratch" "windows/1809" + "windows/nanoserver-ltsc2022" "windows/servercore-ltsc2022" ) diff --git a/windows/nanoserver-ltsc2022/Dockerfile b/windows/nanoserver-ltsc2022/Dockerfile new file mode 100644 index 0000000..44ac832 --- /dev/null +++ b/windows/nanoserver-ltsc2022/Dockerfile @@ -0,0 +1,26 @@ +# Installer image, needed for Invoke-WebRequest +FROM mcr.microsoft.com/windows/servercore:ltsc2022 AS installer +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +RUN Invoke-WebRequest \ + -Uri "https://github.com/traefik/traefik/releases/download/v3.0.0-rc5/traefik_v3.0.0-rc5_windows_amd64.zip" \ + -OutFile "/traefik.zip"; \ + Expand-Archive -Path "/traefik.zip" -DestinationPath "/" -Force; \ + Remove-Item "/traefik.zip" -Force + +# Runner image +FROM mcr.microsoft.com/windows/nanoserver:ltsc2022 + +COPY --from=installer /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.0.0-rc5" \ + org.opencontainers.image.documentation="https://docs.traefik.io" diff --git a/windows/nanoserver-ltsc2022/tmplv2.Dockerfile b/windows/nanoserver-ltsc2022/tmplv2.Dockerfile new file mode 100644 index 0000000..eb4c005 --- /dev/null +++ b/windows/nanoserver-ltsc2022/tmplv2.Dockerfile @@ -0,0 +1,26 @@ +# Installer image, needed for Invoke-WebRequest +FROM mcr.microsoft.com/windows/servercore:ltsc2022 AS installer +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 + +# Runner image +FROM mcr.microsoft.com/windows/nanoserver:ltsc2022 + +COPY --from=installer /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" diff --git a/windows/nanoserver-ltsc2022/tmplv3.Dockerfile b/windows/nanoserver-ltsc2022/tmplv3.Dockerfile new file mode 100644 index 0000000..eb4c005 --- /dev/null +++ b/windows/nanoserver-ltsc2022/tmplv3.Dockerfile @@ -0,0 +1,26 @@ +# Installer image, needed for Invoke-WebRequest +FROM mcr.microsoft.com/windows/servercore:ltsc2022 AS installer +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 + +# Runner image +FROM mcr.microsoft.com/windows/nanoserver:ltsc2022 + +COPY --from=installer /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"