Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWIP: Introduce Windows Docker images #720
Conversation
|
Got AppVeyor setup on my fork: https://ci.appveyor.com/project/LaurentGoderre/docker-node/history |
4a05960
to
3286c0d
|
@StefanScherer can we try getting those Windows image working without Multi-stage for now? |
StefanScherer
commented
Jun 12, 2018
|
@LaurentGoderre It depends. You could build a node image based on windowsservercore by removing the second FROM and the two COPY instructions. But then gpg tools are also installed in the image. For a nanoserver image the GPG tools won't work (MSI/EXE installer, probably only 32bit). An image based on microsoft/nanoserver:sac2016 could work. For Windows builds I really depend on multi-stage builds (or at least the old fashioned way with docker build -t download ; docker create / docker cp ; docker build -t final to ship a usable and small image. |
|
6GB??? What artifacts causes this? If we want Windows images soon, we don't have much choice but to forgo the Multi-stage until they are supported for official-images. |
9b1cc6c
to
9c4851f
StefanScherer
commented
Jun 12, 2018
|
6GB is when someone wants to pull or create a „tiny“ node hello world app on a fresh Windows 10 or 2016 server. This is the windowsservercore image which weighs so much. I know the hard constraint for official images. But it‘s a solvable problem in the (more or less small) CI pipeline compared to the benefit for the whole Windows community getting a great and fast experience. |
|
I can't solve the multibuild but i can try to solve the images. Right now the install works on nanoserver but the subsequent call to gpg fails, as if it isn't aware of the change to |
StefanScherer
commented
Jun 13, 2018
•
|
You can check binaries with the NanoServer API Scan tool. I‘ve built an image for such tasks. |
|
@StefanScherer do you know if there's a way to get access to a cloud version of Windows 10 Enterprise so I could test this without appveyor? I discovered I have PowerShell on my workmachine (which mildly shocked me) so that part is now easier, but the docker part is still hard. |
StefanScherer
commented
Jun 13, 2018
|
@LaurentGoderre You could use the 30 days trial at Azure to spin up Windows 10 Pro 1803 which should be good enough to use containers. Use eg. a Standard_D2_v3 (or bigger) instance type which has nested Hyper-V support to be able to run eg. Docker for Windows in such an Azure instance. |
swissarmykirpan
commented
Jun 26, 2018
|
@StefanScherer what is the benefit of having Windows Containers where there are already Linux Containers, especially since LCOW is now possible - (appveyor does support this on a paid plan). |
StefanScherer
commented
Jun 27, 2018
|
@swissarmykirpan It all depends on your application and environment. When one of your node modules needs Windows API then it's good to have same packaging as Docker image as on Linux. |
| ENV YARN_VERSION 0.0.0 | ||
|
|
||
| RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \ | ||
| Invoke-WebRequest $('https://yarnpkg.com/downloads/{0}/yarn-{0}.msi' -f $env:YARN_VERSION) -OutFile yarn.msi -UseBasicParsing ; \ |
This comment has been minimized.
This comment has been minimized.
nschonni
Jul 24, 2018
Member
I don't think the MSI stuff works on nanoserver (otherwise we could do the Node install that way. Maybe NPM install it?
This comment has been minimized.
This comment has been minimized.
StefanScherer
Jul 24, 2018
Correct, MSI does not work. But also the GPG binary does not work in nanoserver as it's 32bit only.
StefanScherer
commented
Jan 8, 2019
|
@LaurentGoderre Yesterday I saw that the Is the build infra for the official node images also able to build for Windows Server 2019? I may have asked that years ago if you use the same infra as eg. for the other official Docker images? :-) So if there is support for at least Windows Server 2016 and 2019 I could help to get this done as it makes sense to me. Ok, a version without multi-stage build, so far so good. One obstacle is that nanoserver no longer has PowerShell support, the 1809 images now have curl.exe and tar.exe in a CMD shell, but scripting all the GPG loop will be painful in just cmd scripts. So maybe drop the nanoserver image and just use mcr.microsoft.com/windows/servercore:ltsc2016 and mcr.microsoft.com/windows/servercore:ltsc2019 WDYT? |
We have our own CI to test PRs, but the official images (the ones you pull down) are built by Docker on their own infra |
StefanScherer
commented
Jan 8, 2019
•
|
Thanks @SimenB Do you think it would be possible to check PR's for Windows Server 2016 only on your side and let the Docker infra build all four Windows variants to provide a manifest list like the golang?
There are 2016, 1709, 1803 and 1809 variants there, so on any Windows Version it picks the best fitting image (just like working on different Linux CPU architectures). Windows Server 2019 / Windows 10 1809 brings so many bugfixes for Node.js on Windows (the mapped folders for source code from the host work, port mapping to localhost works, docker pull and extract is faster than on 2016, ...). And then we have to choose which PR we want to update, this one or #362. |
|
FYI, for testing Windows images, we've used AppVeyor for a long time (https://github.com/docker-library/golang/blob/60879215d473711ae500cc43acbfa037cf808fb0/.appveyor.yml), but they only currently support the LTSC release of 2016. Travis recently (https://blog.travis-ci.com/2018-10-11-windows-early-release) added support for Windows with 1803 (https://github.com/docker-library/golang/blob/60879215d473711ae500cc43acbfa037cf808fb0/.travis.yml#L6-L8), which makes it easier to run similar tests across both Windows and Linux, even with Docker. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

LaurentGoderre commentedMay 7, 2018
No description provided.