-
Notifications
You must be signed in to change notification settings - Fork 60
Conversation
Build Dockerfile from nanoserver:1809 for windows 2019 compatibility. The netapi32.dll is needed to work around a Go bug with Nanoserver. The file is from mcr.microsoft.com/windows/servercore:1809 An alternative way to do this would be with a multistage build.
I can confirm that it seems to be working. It is at least both building and running. For anyone currious why the "netapi32" file is there, it's to fix: golang/go#21867 |
Any ETA when this is getting merged? |
@@ -1,6 +1,7 @@ | |||
FROM microsoft/nanoserver:sac2016 | |||
FROM mcr.microsoft.com/windows/nanoserver:1809 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- For the Docker image name change: it should be done in the file
tmpl.Dockerfile
instead of here - For the tag (version) change, it should be done in the scripts
update*.sh
as they generate these Dockerfiles from the templates.
|
||
COPY ./traefik.exe /traefik.exe | ||
COPY ./netapi32.dll /windows/system32/netapi32.dll |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be downloaded in the same manner as traefik.exe
is, so it can be updated when the update*.sh
scripts are called.
Hi @jwlogemann, thanks for this contribution, it's cool! This PR is currently being blocked for the following reasons:
Alas, by committing directly the binary as this PR, neither of these 3 elements are fulfilled, which would (at least) make the image refused by Docker when trying to publish it. What should we do then? Well, TL;DR; we have to wait for docker-library/official-images#5929 to be ready. Details:
Proposal: blocking this PR until Multi-stage build are supported in Docker's official library. |
As docker-library/official-images#5929 has recently been merged, can work on this PR continue? I would really like to see Traefik work on Windows Server 2019! |
Yes totally, let's update this PR following the new bashbrew! |
I've changed the Dockerfile to be Windows build 1809 compatible. This is needed when using Traefik as a Kubernetes ingress controller in Windows Server 2019
Fixes #44